docker
This commit is contained in:
parent
98ca120156
commit
166bf184f6
19
dockerfile
Normal file
19
dockerfile
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
FROM python:alpine
|
||||||
|
|
||||||
|
# Set the working directory
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
# Copy the requirements file into the container
|
||||||
|
COPY requirements.txt .
|
||||||
|
|
||||||
|
# Install the required packages
|
||||||
|
RUN pip install --no-cache-dir -r requirements.txt
|
||||||
|
|
||||||
|
# Copy the rest of the application code into the container
|
||||||
|
COPY src/ ./src
|
||||||
|
|
||||||
|
# Expose the port the app runs on
|
||||||
|
EXPOSE 5000
|
||||||
|
|
||||||
|
# run the application
|
||||||
|
CMD ["python", "src/main.py"]
|
Loading…
x
Reference in New Issue
Block a user