forked from Oxygem/Kanmail
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (17 loc) · 766 Bytes
/
Dockerfile
File metadata and controls
29 lines (17 loc) · 766 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
FROM --platform=linux/amd64 python:3.9.12-alpine3.15
LABEL maintainer="Nick Barrett, Oxygem <hello@oxygem.com>"
ARG PACKAGES='gcc make git musl-dev libc-dev libffi-dev libressl-dev zlib-dev cargo'
ADD ./requirements /opt/kanmail/requirements
RUN apk add --no-cache $PACKAGES \
&& pip install -r /opt/kanmail/requirements/docker.txt --no-cache-dir \
&& apk del --purge $PACKAGES
ADD . /opt/kanmail
ADD ./dist /opt/kanmail/kanmail/client/static/dist
RUN adduser --disabled-password --gecos '' kanmail
WORKDIR /opt/kanmail
RUN chown -R kanmail:kanmail /opt/kanmail
RUN mkdir -p /home/kanmail/.config/kanmail \
&& chown -R kanmail:kanmail /home/kanmail
VOLUME /home/kanmail/.config/kanmail
USER kanmail
ENTRYPOINT [ "/opt/kanmail/scripts/run_server.py" ]