DSC-McMaster-U / Gamified-Learning-Platform

MIT License
6 stars 14 forks source link

Dockerize application #132

Closed zareentk closed 6 months ago

zareentk commented 7 months ago

Set up a docker container for our application, using a Dockerfile and make sure the container can properly run the application:

Dockerfile should look something like this:

# Use an official Python runtime as the base image
FROM python:3.8-slim

# Set the working directory in the container
WORKDIR /app

# Copy the current directory contents into the container
COPY . .

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

# Make port 8080 available
EXPOSE 8080

# Define environment variable for the port (optional)
ENV PORT 8080

# Run the application
CMD ["flask", "--app", "run_app.py", "run", "--host=0.0.0.0", "--port=8080"]
alexchen2 commented 7 months ago

Interested

clarawong20 commented 7 months ago

interested

MithunPara commented 7 months ago

interested