forked from yverdon/geocity
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
26 lines (21 loc) · 845 Bytes
/
Dockerfile
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
FROM sitdocker/geocity-base:v2.1.5
ARG ENV
# Copy files in another location to solved windows rights issues
# These files are only used during build process and by entrypoint.sh for dev
WORKDIR /code
COPY requirements_dev.txt requirements_dev.txt
COPY requirements.txt requirements.txt
RUN if [ "$ENV" = "DEV" ] ; \
then \
echo "Installing development dependencies..." \
&& pip3 install -r requirements_dev.txt \
&& echo "########################################" \
&& echo "# Installed development dependencies #" \
&& echo "########################################"; \
else \
pip3 install -r requirements.txt \
&& echo "########################################" \
&& echo "# Installed production dependencies #" \
&& echo "########################################"; \
fi
COPY . /code/