platypush/examples/docker/Dockerfile

20 lines
542 B
Docker
Raw Normal View History

# Sample Dockerfile. Use platydock -c /path/to/custom/config.yaml
2019-12-01 22:27:54 +01:00
# to generate your custom Dockerfile.
2023-07-24 11:04:17 +02:00
FROM python:3.11-alpine
2019-12-01 22:27:54 +01:00
2023-07-24 10:37:51 +02:00
RUN mkdir -p /install /app
COPY . /install
RUN apk add --update --no-cache redis
RUN apk add --update --no-cache --virtual build-base g++ rust linux-headers
2023-07-24 10:37:51 +02:00
RUN pip install -U pip
2023-07-24 11:04:17 +02:00
RUN cd /install && pip install .
RUN apk del build-base g++ rust linux-headers
2019-12-01 22:27:54 +01:00
2023-07-24 10:37:51 +02:00
EXPOSE 8008
VOLUME /app/config
VOLUME /app/workdir
CMD python -m platypush --start-redis --config-file /app/config/config.yaml --workdir /app/workdir