Compare commits

...

2 Commits

Author SHA1 Message Date
883ff8b7d1 Merge pull request 'add docker file' (#2) from feature-test into main
Reviewed-on: #2
2025-03-03 12:30:23 +00:00
aditya.siregar
e9b9a367a9 add docker file 2025-03-03 19:29:59 +07:00

24
Dockerfile Normal file
View File

@ -0,0 +1,24 @@
FROM golang:1.20-alpine AS build
RUN apk --no-cache add tzdata
WORKDIR /src
COPY . .
# RUN CGO_ENABLED=0 GOOS=linux go build -o /app cmd/klinik-core-service
RUN CGO_ENABLED=0 GOOS=linux go build -o /app cmd/legalgo/main.go
RUN ls -la /
FROM gcr.io/distroless/static
WORKDIR /
COPY --from=build /usr/share/zoneinfo /usr/share/zoneinfo
COPY --from=build /app /app
# RUN ls -la /
ENV TZ=Asia/Jakarta
ENTRYPOINT ["/app"]