-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (17 loc) · 815 Bytes
/
Dockerfile
File metadata and controls
25 lines (17 loc) · 815 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
# Use an official Ubuntu image as a parent image
FROM ubuntu:20.04
# Set DEBIAN_FRONTEND to noninteractive to prevent prompts during package installation
ENV DEBIAN_FRONTEND=noninteractive
# Set the working directory in the container
WORKDIR /app
# Update the package repository and install Python 3
RUN apt-get update && apt-get install -y python3
# Copy the current directory contents into the container at /app
COPY . .
RUN mkdir /app/output
# Install any needed Python packages specified in requirements.txt for your Python application
RUN apt-get install -y python3-pip && pip3 install -r requirements.txt
# Install "readpst" in the container
RUN apt-get install -y pst-utils
# Run the Python script (replace "main.py" with the actual entry point of your Python application)
CMD ["python3", "main.py"]