Switch to Postgres database

This commit is contained in:
Michał Gdula 2023-05-04 17:14:41 +03:00
parent fda3fcc28c
commit 5248ae0123
6 changed files with 67 additions and 19 deletions

View file

@ -2,13 +2,15 @@
FROM python:3.10-alpine
EXPOSE 8080
RUN apk add --no-cache gcc musl-dev linux-headers
# RUN apk add --no-cache gcc musl-dev linux-headers
RUN apk add --no-cache postgresql-client
WORKDIR /data
COPY requirements.txt requirements.txt
RUN pip install -r requirements.txt
RUN mkdir /storage
COPY /highscore/ .
COPY ./highscore .
RUN chmod +x ./run.sh
CMD ["gunicorn", "--bind", "highscore:8080", "server:app"]
CMD ["./run.sh"]