Skip to content
Permalink
master
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
FROM python:3.7-slim AS build-env
# You can build the docker image with the command :
# docker build --no-cache -t seances .
# You can create a container with :
# docker run -it --rm seances [ID_CINEMA]
RUN pip install -U --no-cache-dir --target /app allocine \
&& find /app | grep -E "(__pycache__|\.pyc|\.pyo$)" | xargs rm -rf
FROM gcr.io/distroless/python3-debian10
COPY --from=build-env /app /app
ENV PYTHONPATH=/app
ENV LC_ALL=C.UTF-8
ENV LANG=C.UTF-8
ENTRYPOINT ["python", "/app/bin/seances.py"]