mirror of
https://github.com/Fluffy-Bean/GameExpo23.git
synced 2025-06-05 08:33:11 +00:00
Switch to Postgres database
This commit is contained in:
parent
fda3fcc28c
commit
5248ae0123
6 changed files with 67 additions and 19 deletions
|
@ -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"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue