Skip to content

Commit

Permalink
add Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
hansputera authored Oct 9, 2022
1 parent 02d8cb6 commit 7bf8406
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM golang:alpine3.16

RUN apk update

RUN mkdir -p /home/nglapi
COPY . /home/nglapi
WORKDIR /home/nglapi

RUN go mod download
RUN go build

CMD ["./nglapi"]

0 comments on commit 7bf8406

Please sign in to comment.