Skip to content

Commit

Permalink
Docker version
Browse files Browse the repository at this point in the history
  • Loading branch information
Fernando Ocaña authored and Fernando Ocaña committed Jun 17, 2021
1 parent 2f4591c commit 8644488
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# syntax=docker/dockerfile:1

FROM python:3.8-slim-buster

RUN apt-get update && \
apt-get install -y locales && \
sed -i -e 's/# es_ES.UTF-8 UTF-8/es_ES.UTF-8 UTF-8/' /etc/locale.gen && \
dpkg-reconfigure --frontend=noninteractive locales

ENV LANG es_ES.UTF-8
ENV LC_ALL es_ES.UTF-8
ENV TZ Europe/Madrid

WORKDIR /app

COPY requirements.txt requirements.txt
RUN pip3 install -r requirements.txt

COPY ssbo.py .
COPY dbhelper.py .

RUN mkdir /data
RUN mkdir /logs

CMD [ "python3", "./ssbo.py"]

0 comments on commit 8644488

Please sign in to comment.