Skip to content

Commit

Permalink
fix: fixed bug in Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
tyboro2002 committed Dec 20, 2024
1 parent 69dcec8 commit 24fcbbd
Show file tree
Hide file tree
Showing 3 changed files with 539 additions and 513 deletions.
14 changes: 9 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
# Use an official Python runtime as the base image
FROM python:3.12.4-alpine
FROM python:3.12.4

RUN apt-get update
RUN apt-get install -y chromium

# Set the working directory in the container
WORKDIR /flask-app
WORKDIR /haldis_prijsje


# Copy the entire project directory (including requirements.txt) into the container
COPY . /flask-app/
COPY . .

# Install dependencies
RUN pip install -r /flask-app/requirements.txt
RUN pip install -r requirements.txt

# Expose the port Flask will run on
EXPOSE 5000

# Set the entry point to run the Flask app (assuming app.py is located in the root of /flask-app)
CMD ["python", "/flask-app/website/app.py"]
CMD ["python", "/haldis_prijsje/website/app.py"]
Loading

0 comments on commit 24fcbbd

Please sign in to comment.