Skip to content

Commit

Permalink
Merge pull request #10 from LucasPereiraMiranda/feat/dockerize-app
Browse files Browse the repository at this point in the history
Feat/dockerize app
  • Loading branch information
LucasPereiraMiranda authored May 8, 2024
2 parents 680022b + 0fbedc6 commit 3c2277d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
17 changes: 17 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
FROM golang:1.22.1 AS builder

WORKDIR /app

COPY . .

RUN go build -o main .

FROM debian:buster-slim

WORKDIR /app

COPY --from=builder /app/main .

EXPOSE 8081

CMD ["./main"]
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ Secure Key API app was developed with these technologies
- [Go](https://go.dev/)
- [Mux](https://github.com/gorilla/mux)
- [Docker](https://www.docker.com/)
- [Docker-compose](https://docs.docker.com/compose/)

## 💻 Project

Expand Down

0 comments on commit 3c2277d

Please sign in to comment.