mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-26 15:37:20 +00:00
16 lines
498 B
Docker
16 lines
498 B
Docker
|
# syntax=docker/dockerfile:1
|
||
|
FROM python:3.9.9-buster
|
||
|
|
||
|
WORKDIR /usr/local/share/
|
||
|
RUN git clone https://github.com/DarkflameUniverse/AccountManager
|
||
|
|
||
|
WORKDIR AccountManager
|
||
|
ADD docker/credentials_example.py credentials.py
|
||
|
ADD docker/resources_example.py resources.py
|
||
|
RUN pip3 install -r requirements.txt && echo "SECRET_KEY = r'$(openssl rand -base64 30)'" >> credentials.py
|
||
|
|
||
|
EXPOSE 5000
|
||
|
HEALTHCHECK --interval=2m --timeout=3s \
|
||
|
CMD curl -f http://localhost:5000 || exit 1
|
||
|
CMD python3 app.py
|