generated from axioma-ai-labs/python-template
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathDockerfile
50 lines (37 loc) · 894 Bytes
/
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
39
40
41
42
43
44
45
46
47
48
49
50
# ==================
# Build Nevron Agent
# ==================
FROM python:3.12-slim
WORKDIR /nevron
ENV LANG=C.UTF-8
ENV LC_ALL=C.UTF-8
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONFAULTHANDLER=1
# -----------------------
# Install system packages
# -----------------------
RUN apt-get update && apt-get install -y
# git \
# curl \
# libxml2-dev \
# libxslt-dev \
# libjpeg-dev \
# zlib1g-dev \
# libpng12-dev \
# && rm -rf /var/lib/apt/lists/*
RUN pip install pipenv
# -------------------------
# Create the logs directory
# -------------------------
RUN mkdir logs
# ---------------------
# Setup the environment
# ---------------------
COPY Pipfile Pipfile.lock .
RUN PIPENV_VENV_IN_PROJECT=1 pipenv install --deploy
# --------------
# Nevron Runtime
# --------------
COPY . /nevron
# Command to run the application
CMD ["pipenv", "run", "python", "-m", "src.main"]