-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (23 loc) · 677 Bytes
/
Dockerfile
File metadata and controls
33 lines (23 loc) · 677 Bytes
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
FROM ubuntu:noble
RUN apt-get update && apt-get install -y \
wget \
software-properties-common && \
rm -rf /var/lib/apt/lists/*
RUN add-apt-repository ppa:deadsnakes/ppa && \
apt update && \
apt install -y python3.12 python3-pip
COPY requirements.txt .
RUN pip install -r requirements.txt --break-system-packages
WORKDIR /usr/src/project
ENV APP=production
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
COPY ./.env.production .
COPY ./app /usr/src/project/app
ARG BUILD_NUMBER="0"
ENV BUILD_NUMBER=$BUILD_NUMBER
#CMD ["python3", "-m", "app.main"]
# BUILD:
# docker build -t <project-url>:latest .
# PUSH:
# docker push <project-url>:latest