-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
45 lines (33 loc) · 1 KB
/
Dockerfile
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
45
# syntax=docker/dockerfile:1
FROM python:3.11 AS base
LABEL org.opencontainers.image.authors="mex@rki.de"
LABEL org.opencontainers.image.description="Metadata editor web application."
LABEL org.opencontainers.image.licenses="MIT"
LABEL org.opencontainers.image.url="https://github.com/robert-koch-institut/mex-editor"
LABEL org.opencontainers.image.vendor="robert-koch-institut"
ENV PYTHONUNBUFFERED=1
ENV PYTHONOPTIMIZE=1
ENV PIP_PROGRESS_BAR=off
ENV PIP_PREFER_BINARY=on
ENV PIP_DISABLE_PIP_VERSION_CHECK=on
ENV APP_NAME=mex
ENV FRONTEND_PORT=8030
ENV DEPLOY_URL=http://0.0.0.0:8030
ENV BACKEND_PORT=8040
ENV API_URL=http://0.0.0.0:8040
ENV TELEMETRY_ENABLED=False
ENV REFLEX_ENV_MODE=prod
WORKDIR /app
RUN adduser \
--disabled-password \
--gecos "" \
--shell "/sbin/nologin" \
--no-create-home \
--uid "10001" \
mex
COPY . .
RUN --mount=type=cache,target=/root/.cache/pip pip install -r locked-requirements.txt --no-deps
USER mex
EXPOSE 8030
EXPOSE 8040
ENTRYPOINT [ "editor", "run" ]