easywks/package/docker/Dockerfile

18 lines
361 B
Text
Raw Normal View History

2021-09-27 23:40:10 +02:00
FROM python:3.9-alpine
ADD . /
RUN mkdir -p /var/lib/easywks \
&& chown 1000:0 -R /var/lib/easywks \
&& chmod 0700 /var/lib/easywks \
&& pip3 install -e . \
&& mv /package/docker/entrypoint.sh /entrypoint.sh \
&& mv /package/docker/easywks.yml /etc/easywks.yml \
&& rm -rf /package
USER 1000
EXPOSE 80/tcp
EXPOSE 24/tcp
CMD [ "/entrypoint.sh" ]