Skip to content
This repository has been archived by the owner on Aug 11, 2023. It is now read-only.

Commit

Permalink
Create Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
RealHinome authored Aug 11, 2023
1 parent 156fa9a commit 345adde
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM golang:1.20-alpine3.18 AS build

RUN apk update && apk add --no-cache gcc musl-dev

RUN mkdir /app

COPY . /app

WORKDIR /app

RUN CGO_ENABLED=1 GOOS=linux go build -o Harpocrate

FROM alpine:3.18 AS runtime

COPY --from=build /app/Harpocrate /app/Harpocrate

EXPOSE 5000
CMD [ "/app/Harpocrate" ]

0 comments on commit 345adde

Please sign in to comment.