Skip to content

Commit

Permalink
production docker compose
Browse files Browse the repository at this point in the history
  • Loading branch information
taichan03 committed Mar 11, 2024
1 parent ddb378c commit 6d26826
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions docker-compose.prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ services:
- "5432:5432"
backend:
image: balancer-backend
dockerfile: Dockerfile.prod
build: ./server
build:
context: server
dockerfile: Dockerfile.prod
ports:
- "8000:8000"
env_file:
Expand Down
3 changes: 2 additions & 1 deletion server/Dockerfile.prod
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# pull official base image
FROM python:3.11.4-slim-buster


# set work directory
WORKDIR /usr/src/app

Expand All @@ -17,7 +18,7 @@ COPY ./requirements.txt .
RUN pip install -r requirements.txt

# copy project
COPY . .
COPY . /usr/src/app

# Correct line endings in entrypoint.sh and make it executable
RUN sed -i 's/\r$//' entrypoint.sh && chmod +x entrypoint.sh
Expand Down

0 comments on commit 6d26826

Please sign in to comment.