forked from jhuopensource/semesterly
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (23 loc) · 773 Bytes
/
Dockerfile
File metadata and controls
31 lines (23 loc) · 773 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
ARG BASE_IMAGE=jhuopensource/semesterly-base-py3
FROM $BASE_IMAGE
# sgerli/horariotec-base:
RUN mkdir /code
WORKDIR /code
# Just adding basics
# ADD ./requirements.txt /code/
# ADD ./package.json /code/
# Add everything
ADD . /code/
# Nginx moved out
# COPY ./build/semesterly-nginx.conf /etc/nginx/sites-available/
# RUN rm /etc/nginx/sites-enabled/*
# RUN ln -s /etc/nginx/sites-available/semesterly-nginx.conf /etc/nginx/sites-enabled
# RUN echo "daemon off;" >> /etc/nginx/nginx.conf
# Use environment based config
COPY ./build/local_settings.py /code/semesterly/local_settings.py
# Add parser script
COPY ./build/run_parser.sh /code/run_parser.sh
RUN pip3 install -r /code/requirements.txt
# Install package.json dependencies
RUN npm install
RUN npm run build