-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (19 loc) · 765 Bytes
/
Dockerfile
File metadata and controls
27 lines (19 loc) · 765 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
FROM python:3.8-slim
WORKDIR /usr/src/app
# Install additional Debian packages
RUN apt-get -y update && apt-get upgrade -y && apt-get install -y \
python3 python3-pip default-libmysqlclient-dev \
libjpeg-dev zlib1g-dev wget git \
&& rm -rf /var/lib/apt/lists/*
# download the cloudsql proxy
RUN wget https://dl.google.com/cloudsql/cloud_sql_proxy.linux.amd64 \
-q --show-progress -O /usr/src/cloud_sql_proxy
# make cloudsql proxy executable
RUN chmod +x /usr/src/cloud_sql_proxy
COPY requirements requirements
# Update pip and install Python dependencies.
RUN pip install --upgrade -r requirements/production.txt --no-cache-dir
COPY . /usr/src/app
RUN date +'%d %b %Y' > /usr/src/build-date.txt
EXPOSE 80
CMD ["/usr/src/app/run.sh"]