-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (22 loc) · 979 Bytes
/
Dockerfile
File metadata and controls
28 lines (22 loc) · 979 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
# Use official Python image
FROM python:3.11-slim
# maintainer labels
LABEL maintainer="Younes Modaresian <modaresian.younes@gmail.com> (https://github.com/younesmod)" \
org.opencontainers.image.authors="Younes Modaresian <modaresian.younes@gmail.com>" \
org.opencontainers.image.url="https://github.com/younesmod/dockerized-static-website/pkgs/container/dockerized-static-website" \
org.opencontainers.image.source="https://github.com/younesmod/dockerized-static-website" \
org.opencontainers.image.title="dockerized-static-website" \
org.opencontainers.image.description="A simple nginx-based/dockerized project" \
org.opencontainers.image.vendor="Younes Modaresian"
#\ org.opencontainers.image.licenses="MIT"
# Set working directory
WORKDIR /app
# Copy dependency file and install dependencies
COPY requirements.txt .
RUN pip install -r requirements.txt
# Copy app code
COPY . .
# Expose port
EXPOSE 5000
# Run the app
CMD ["python", "app.py"]