diff --git a/Backend/Dockerfile b/Backend/Dockerfile index d085169..9760de3 100644 --- a/Backend/Dockerfile +++ b/Backend/Dockerfile @@ -1,30 +1,30 @@ -# Use Python as the base image -FROM python:3.8-slim-buster +# For more information, please refer to https://aka.ms/vscode-docker-python +#just so yk this dockerfile is the template docker gave me lol +# -# Install pip and Python dependencies +FROM ubuntu:latest +FROM python:3.8-slim-buster +#install pip & python3 RUN apt-get update && apt-get install -y python3 python3-pip - # Keeps Python from generating .pyc files in the container ENV PYTHONDONTWRITEBYTECODE=1 # Turns off buffering for easier container logging ENV PYTHONUNBUFFERED=1 - -# Set the working directory in the container -WORKDIR /app - - # Install pip requirements -COPY /requirements.txt . +COPY requirements.txt . +#just use python3 RUN python3 -m pip install -r requirements.txt -# Copy main application file -COPY generateData.py . - -# Set the port for the application +COPY generateData.py /generateData.py ENV PORT=5000 EXPOSE 5000 -# Command to run the application +# Creates a non-root user with an explicit UID and adds permission to access the /app folder +# For more info, please refer to https://aka.ms/vscode-docker-python-configure-containers +#RUN adduser -u 5678 --disabled-password --gecos "" appuser && chown -R appuser /app +#USER appuser + +# During debugging, this entry point will be overridden. For more information, please refer to https://aka.ms/vscode-docker-python-debug CMD ["python3", "generateData.py"] \ No newline at end of file diff --git a/Docs/READMEMS6.md b/Docs/READMEMS6.md new file mode 100644 index 0000000..936f556 --- /dev/null +++ b/Docs/READMEMS6.md @@ -0,0 +1,28 @@ +# Link to Trello: +https://trello.com/b/j8t0Ulvk/group-51-jira-kaban-board + +### + +# Link to Figma: +https://www.figma.com/design/mKMWW1sIOVpuQKOlapBINQ/ishayu.ray + + + +### +### +### + +# Starting the Database. +1. The Dockerfile in the Backend folder populates the database. + **MAKE SURE YOU ARE IN THE BACKEND FOLDER IN YOUR TERMINAL!** + +2. Use this command below to build the image + + **docker build -f Dockerfile -t team51_backend .** + +3. Then run the docker together with this command + + **docker run -p 5000:5000 team51_backend** + + + \ No newline at end of file