easywks/package/docker/Dockerfile

20 lines
451 B
Text
Raw Normal View History

2021-09-27 23:40:10 +02:00
FROM python:3.9-alpine
ADD . /
2021-09-28 00:30:42 +02:00
RUN apk --update add build-base libffi libffi-dev \
&& mkdir -p /var/lib/easywks \
2021-09-27 23:40:10 +02:00
&& 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 \
2021-09-28 00:30:42 +02:00
&& rm -rf /package \
&& apk del build-base libffi-dev
2021-09-27 23:40:10 +02:00
USER 1000
EXPOSE 80/tcp
EXPOSE 24/tcp
CMD [ "/entrypoint.sh" ]