Skip to content

Commit

Permalink
Merge pull request #93 from sooraj-sky/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
sooraj-sky authored Jul 22, 2023
2 parents 35e2cef + 6ba4e96 commit ba9f77d
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
# syntax=docker/dockerfile:1

FROM golang:1.18-alpine AS builder


WORKDIR /go/src/app
ENV GO111MODULE=on \
CGO_ENABLED=1 \
Expand All @@ -12,21 +9,16 @@ ENV GO111MODULE=on \
COPY go.mod ./
COPY go.sum ./


RUN go mod download

COPY . .
WORKDIR /go/src/app/cmd
RUN go build -o /main

EXPOSE 8080

CMD [ "/server" ]

FROM alpine

COPY --from=builder /main .
COPY --from=builder /go/src/app/template .
COPY --from=builder /go/src/app/templates .
ARG USER=skyuser
ENV HOME /home/$USER

Expand Down

0 comments on commit ba9f77d

Please sign in to comment.