forked from axeleroy/self-host-planning-poker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
21 lines (20 loc) · 777 Bytes
/
Dockerfile
File metadata and controls
21 lines (20 loc) · 777 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM --platform=$BUILDPLATFORM docker.io/library/node:lts-slim AS node_builder
WORKDIR /angular
COPY angular/ /angular
RUN npm config set update-notifier false && \
npm config set fund false && \
npm config set audit false && \
npm ci
RUN npm run build self-host-planning-poker
FROM docker.io/library/python:3.11.7-alpine3.18
RUN adduser -H -D -u 1001 -G root default
WORKDIR /app
COPY --chown=1001:0 flask/ ./
COPY --chown=1001:0 --from=node_builder /angular/dist/self-host-planning-poker ./static
RUN pip install --upgrade pip && \
pip install --requirement requirements.txt && \
mkdir /data && \
chown -R 1001:0 /app /data && \
chmod -R g+w /app /data
USER 1001
CMD [ "gunicorn", "--worker-class", "eventlet", "-w", "1", "app:app", "--bind", "0.0.0.0:8000" ]