Skip to content

Commit

Permalink
dockerfile mods
Browse files Browse the repository at this point in the history
  • Loading branch information
Generate NEU committed Jun 18, 2024
1 parent e56330a commit 2abc3ef
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions backend/Dockerfile.server
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# syntax=docker/dockerfile:1

FROM golang:1.22.2
FROM golang:1.22.2 as builder

WORKDIR /app

Expand All @@ -13,6 +13,10 @@ RUN templ generate

RUN CGO_ENABLED=0 GOOS=linux go build -v -o ./sac

FROM alpine:latest as release

COPY --from=builder /app/sac /sac

EXPOSE 8080

CMD ["/app/sac"]
ENTRYPOINT [ "/sac" ]

0 comments on commit 2abc3ef

Please sign in to comment.