-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Dockerfile
27 lines (23 loc) · 1.04 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
FROM python:3.11-slim
RUN apt-get update \
&& apt-get install gcc curl -y \
&& apt-get clean
WORKDIR /app
COPY requirements.txt .
RUN pip install -r requirements.txt
COPY requirements-server.txt .
RUN pip install -r requirements-server.txt
LABEL maintainer="Allan Galarza <[email protected]>"
LABEL org.opencontainers.image.licenses="Apache 2.0"
LABEL org.opencontainers.image.authors="Allan Galarza <[email protected]>"
LABEL org.opencontainers.image.url="https://github.com/Galarzaa90/tibia.py"
LABEL org.opencontainers.image.source="https://github.com/Galarzaa90/tibia.py"
LABEL org.opencontainers.image.vendor="Allan Galarza <[email protected]>"
LABEL org.opencontainers.image.title="tibia.py"
LABEL org.opencontainers.image.description="API that parses website content into python data."
COPY tibiapy/ tibiapy/
COPY server.py main.py
EXPOSE 8000
HEALTHCHECK --interval=60s --timeout=10s --start-period=5s --retries=5 \
CMD curl --fail http://localhost:8000/healthcheck || exit 1
ENTRYPOINT ["fastapi", "run", "--port", "8000"]