Skip to content

Commit

Permalink
Add compose and expose port
Browse files Browse the repository at this point in the history
  • Loading branch information
Divkix committed May 24, 2023
1 parent 0c4a51e commit b7ec688
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ RUN CGO_ENABLED=0 GOOS=`go env GOHOSTOS` GOARCH=`go env GOHOSTARCH` go build -o
# Final Stage: Use a smaller base image and only include necessary files
FROM scratch
COPY --from=builder /app/out/aliveimage /app/aliveimage
EXPOSE 8080
CMD ["/app/aliveimage"]
11 changes: 11 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: '3'
services:
alive-image:
build:
context: .
dockerfile: Dockerfile
restart: always
environment:
- PORT=8080
ports:
- '5005:8080'

0 comments on commit b7ec688

Please sign in to comment.