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 10:37:51 +02:00
|
|
|
FROM python3.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 cd /install
|
|
|
|
RUN apk add --update --no-cache redis
|
|
|
|
RUN apk add --update --no-cache --virtual build-base g++ rust
|
|
|
|
RUN pip install -U pip
|
|
|
|
RUN pip install .
|
|
|
|
RUN apk del build-base g++ rust
|
2019-12-01 22:27:54 +01:00
|
|
|
RUN cd /app && python setup.py build install
|
|
|
|
|
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
|