Skip to content

Commit

Permalink
fix: restoring prod docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
matthew-hagemann committed Oct 17, 2024
1 parent 9dd3542 commit d8d0378
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ services:

ratings:
container_name: ratings
build: ./docker/server
build: ./docker/local
ports:
- 8080:8080
environment:
Expand Down Expand Up @@ -49,7 +49,7 @@ services:

snapcraft-mock:
container_name: snapcraft-mock
build: ./docker/server
build: ./docker/local
ports:
- 11111:11111
volumes:
Expand Down
File renamed without changes.
9 changes: 9 additions & 0 deletions docker/prod/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM ubuntu:latest

RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get upgrade -y && rm -rf /var/lib/apt/lists/*

WORKDIR /app
COPY target/release/ratings /app/ratings

EXPOSE 443
ENTRYPOINT ["/app/ratings"]

0 comments on commit d8d0378

Please sign in to comment.