-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
38 lines (30 loc) · 1.2 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
28
29
30
31
32
33
34
35
36
37
38
# Base Python image
FROM python:3.12
# Image Labels. Update values for each build
LABEL Name="Skill-Forge Underworld"
LABEL Version="1.0.2"
LABEL Release="public"
LABEL ReleaseDate="01.11.2024"
LABEL Description="Skill Forge Underworld is a Flask microservice that provides a API for the Skill Forge Underworld Realm."
LABEL Maintainer="Aleksandar Karastoyanov <[email protected]>"
LABEL License="GNU GPL v3.0 license"
LABEL GitHub SourceCode="https://github.com/Skill-Forge-Project/skill_forge_underworld"
# Update the package list
RUN apt-get update
# RUN apt-get install build-essential libssl-dev libffi-dev python3-dev cargo -y
# Set default timezone
ENV TZ=Europe/Sofia
RUN ln -fs /usr/share/zoneinfo/$TZ /etc/localtime \
&& dpkg-reconfigure -f noninteractive tzdata
# Set the working directory in the container
WORKDIR /app
# Copy the current directory contents into the container at /app
COPY . /app
# Install the Python app requirements
RUN pip install --upgrade pip
RUN pip install --upgrade setuptools wheel
RUN pip install -r requirements.txt --no-cache --pre
# Expose port 8000
EXPOSE 8000
# Run the application
CMD ["gunicorn", "-k", "eventlet", "-w", "1", "-b", "0.0.0.0:8000", "wsgi:app"]