Files
Templated/Dockerfile

22 lines
465 B
Docker

FROM python:3
WORKDIR /usr/src/app
RUN apt-get -qq update && \
apt-get -q -y upgrade && \
apt-get install -y locales && \
rm -rf /var/lib/apt/lists/*
RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
sed -i -e 's/# nl_NL.UTF-8 UTF-8/nl_NL.UTF-8 UTF-8/' /etc/locale.gen && \
locale-gen
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
EXPOSE 1212
CMD ["python", "./test.py"]