Skip to content

Commit

Permalink
add dockerfile for gh action
Browse files Browse the repository at this point in the history
  • Loading branch information
simonycj committed Sep 27, 2024
1 parent 48c415b commit d36404b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM golang:1.22.1-alpine3.19 as build
WORKDIR /core-api
COPY . /core-api
RUN apk add make bash which && make go-build

FROM docker.io/library/ubuntu:latest
COPY --from=build /core-api/cmd/core-api-server/core-api-server /usr/bin/
EXPOSE 80
EXPOSE 443
WORKDIR /usr/bin

0 comments on commit d36404b

Please sign in to comment.