-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
47 lines (38 loc) · 1.77 KB
/
Dockerfile
File metadata and controls
47 lines (38 loc) · 1.77 KB
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
# ##########################################################################
# File: Dockerfile
# Author: Vatsal Gupta (gvatsal60)
# Date: 26-Sep-2025
# Description: Dockerfile for a GenAI application.
# ##########################################################################
# ##########################################################################
# License
# ##########################################################################
# This Dockerfile is licensed under the Apache 2.0 License.
# License information should be updated as necessary.
# ##########################################################################
# ##########################################################################
# Base Image
# ##########################################################################
FROM python:3.14-alpine
RUN addgroup -S nonroot \
&& adduser -S nonroot -G nonroot
# ##########################################################################
# Maintainer
# ##########################################################################
LABEL maintainer="Vatsal Gupta (gvatsal60)"
# ##########################################################################
# Set Working Directory
# ##########################################################################
WORKDIR /app
# ##########################################################################
# Copy Files
# ##########################################################################
COPY src/ ./src/
COPY requirements.txt ./
RUN pip3 install --no-cache-dir -r requirements.txt
USER nonroot
# ##########################################################################
# Command to Run
# ##########################################################################
# For standard Python applications
ENTRYPOINT [ "python" , "src/app.py" ]