-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
45 lines (32 loc) · 823 Bytes
/
Dockerfile
File metadata and controls
45 lines (32 loc) · 823 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
32
33
34
35
36
37
38
39
40
41
42
43
44
FROM python:3.10
###
### Upgrade (install ps)
###
RUN set -eux \
&& DEBIAN_FRONTEND=noninteractive apt update -qq \
&& DEBIAN_FRONTEND=noninteractive apt install -qq -y --no-install-recommends --no-install-suggests \
procps curl bash\
&& apt autoclean \
&& apt clean \
&& true
###
### Envs
###
ENV MY_USER="app" \
MY_GROUP="app"
ARG DOCKER_UID=1000
ARG DOCKER_GID=1000
###
### User/Group
###
RUN set -eux \
&& groupadd -g ${DOCKER_GID} -r ${MY_GROUP} \
&& useradd -d /home/${MY_USER} -u ${DOCKER_UID} -m -s /bin/bash -g ${MY_GROUP} ${MY_USER} \
&& true
RUN set -eux \
&& DEBIAN_FRONTEND=noninteractive apt install -qq -y libpq-dev build-essential \
&& true
COPY requirements.txt /requirements.txt
RUN pip install -r /requirements.txt
COPY . /app
WORKDIR /app/data