-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathdev.dockerfile
More file actions
27 lines (19 loc) · 814 Bytes
/
dev.dockerfile
File metadata and controls
27 lines (19 loc) · 814 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.13.2-alpine@sha256:323a717dc4a010fee21e3f1aac738ee10bb485de4e7593ce242b36ee48d6b352
COPY . /tmp/src
RUN addgroup -g 1000 goosebit && \
adduser -u 1000 -G goosebit -s /bin/sh -D goosebit && \
mkdir /artifacts && \
chown goosebit:goosebit /artifacts && \
pip install --no-cache-dir \
gunicorn \
/tmp/src[postgresql] && \
rm -rf /tmp/src
COPY docker/aerich.toml /
VOLUME /artifacts
EXPOSE 60053
USER goosebit
# We currently do not fully support multiple workers. For more information, see:
# https://github.com/UpstreamDataInc/goosebit/issues/125
ENV GUNICORN_CMD_ARGS="--workers 1 --enable-stdio-inheritance"
CMD aerich --config /aerich.toml upgrade && \
gunicorn --worker-class uvicorn.workers.UvicornWorker --bind 0.0.0.0:60053 goosebit:app </dev/null