Dockerfile 530 Bytes
Newer Older
1 2 3
FROM python:3

ENV PYTHONUNBUFFERED=1
4

Vincent Martinez committed
5 6 7 8 9 10 11
# Add french locale
RUN apt update && \
    apt install -y --no-install-recommends locales && \
    rm -rf /var/lib/apt/lists/* && \
    sed -i '/^#.* fr_FR.UTF-8 /s/^#//' /etc/locale.gen && \
    locale-gen

12 13
WORKDIR /home/app

14 15
RUN pip install --upgrade pip

16 17 18
COPY requirements.txt /home/app/
RUN pip install -r requirements.txt

19 20
# Setup volume to be able to dev application locally
VOLUME /home/app
21
COPY . /home/app
22 23 24 25

# Run the application:
EXPOSE 8080
CMD ["./launch.sh", "0.0.0.0", "8080"]