sedi-relay/Dockerfile

29 lines
656 B
Docker
Raw Permalink Normal View History

FROM python:3-alpine
2022-05-06 07:04:51 +00:00
# install build deps for pycryptodome and other c-based python modules
RUN apk add alpine-sdk autoconf automake libtool gcc
2022-05-06 07:04:51 +00:00
# add env var to let the relay know it's in a container
ENV DOCKER_RUNNING=true
2022-05-06 07:04:51 +00:00
# setup various container properties
VOLUME ["/data"]
CMD ["python", "-m", "relay"]
2022-05-06 07:04:51 +00:00
EXPOSE 8080/tcp
WORKDIR /opt/activityrelay
# install and update important python modules
RUN pip3 install -U setuptools wheel pip
2022-05-06 07:04:51 +00:00
# only copy necessary files
COPY relay ./relay
COPY LICENSE .
COPY README.md .
COPY requirements.txt .
COPY setup.cfg .
COPY setup.py .
COPY .git ./.git
# install relay deps
RUN pip3 install -r requirements.txt