Skip to content

Commit

Permalink
Create Dockerfile
Browse files Browse the repository at this point in the history
Signed-off-by: NxPKG <[email protected]>
  • Loading branch information
NxPKG authored Feb 9, 2024
1 parent 88603e6 commit 44c33e1
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Use an official Python runtime as a parent image
FROM python:3.9-slim

# Set the working directory in the container
WORKDIR /app

# Copy the current directory contents into the container at /app
COPY . /app

# Install any needed dependencies specified in requirements.txt
RUN pip install --no-cache-dir -r requirements.txt

# Define environment variable
ENV PYTHONPATH=/app

# Run script.py when the container launches
CMD ["python", "script.py"]

0 comments on commit 44c33e1

Please sign in to comment.