Skip to content

Commit

Permalink
build optimisation
Browse files Browse the repository at this point in the history
  • Loading branch information
larinam committed Dec 8, 2023
1 parent 5a6f370 commit 765cf75
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@ FROM python:3.12-slim
# Set the working directory in the container
WORKDIR /usr/src/app

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

# Copy the current directory contents into the container at /usr/src/app
COPY . .
COPY .env.docker-compose.template .env

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

# Make port 80 available to the world outside this container
EXPOSE 80

Expand Down

0 comments on commit 765cf75

Please sign in to comment.