-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathDockerfile
More file actions
41 lines (37 loc) · 788 Bytes
/
Dockerfile
File metadata and controls
41 lines (37 loc) · 788 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
FROM python:3.9-alpine AS base
WORKDIR /usr/src/app
RUN pip install --no-cache-dir poetry \
&& apk add --no-cache postgresql-client
# We need a build environment for some of our python dependencies.
# This mess is mostly from the upstream python-alpine dockerfile.
RUN apk add --no-cache --virtual .build-deps \
bzip2-dev \
coreutils \
dpkg-dev dpkg \
expat-dev \
findutils \
gcc \
gdbm-dev \
libc-dev \
libffi-dev \
libnsl-dev \
libtirpc-dev \
linux-headers \
make \
ncurses-dev \
pax-utils \
readline-dev \
sqlite-dev \
tcl-dev \
tk \
tk-dev \
util-linux-dev \
xz-dev \
zlib-dev \
postgresql-dev
COPY pyproject.toml ./
COPY poetry.lock ./
RUN poetry install
EXPOSE 8000
ENTRYPOINT ["poetry", "run"]
CMD ["./docker/start_dev.sh"]