forked from uccser/codewof
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
31 lines (24 loc) · 828 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
27
28
29
30
31
# This Dockerfile is based off the Google App Engine Python runtime image
# https://github.com/GoogleCloudPlatform/python-runtime
FROM uccser/django:2.1.5
# Add metadata to Docker image
LABEL maintainer="[email protected]"
# Set terminal to be noninteractive
ARG DEBIAN_FRONTEND=noninteractive
ENV DJANGO_PRODUCTION=True
RUN apt-get update \
&& apt-get install -y \
binutils \
libproj-dev \
gdal-bin \
--no-install-recommends --no-install-suggests \
&& apt-get -y --purge autoremove \
&& rm -rf /var/lib/apt/lists/*
EXPOSE 8080
RUN mkdir /codewof
WORKDIR /codewof
# Copy and install Python dependencies
COPY requirements /requirements
RUN /docker_venv/bin/pip3 install -r /requirements/production.txt
ADD ./codewof /codewof/
CMD /codewof/docker-production-entrypoint.sh