-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- 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.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |