2023-07-23 17:27:48 +02:00
|
|
|
# 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
|
|
|
|
RUN pip install -U pip
|
2023-07-24 11:04:17 +02:00
|
|
|
RUN cd /install && pip install .
|
2023-07-24 10:37:51 +02:00
|
|
|
RUN apk del build-base g++ rust
|
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
|