build: remove unecessary files in final image
These aren't needed anymore because we started embedding `static` and `templates` directly into the binary, so that makes it easier to: 1. Distribute 2. Setup 3. Run
This commit is contained in:
parent
ecb147533a
commit
5c951b3a6d
@ -4,8 +4,8 @@ WORKDIR /app
|
||||
|
||||
COPY go.mod go.sum ./
|
||||
|
||||
# this is needed because we embed these files into the binary
|
||||
COPY static/ ./static/
|
||||
|
||||
COPY templates/ ./templates
|
||||
|
||||
RUN go mod download
|
||||
@ -17,7 +17,5 @@ RUN CGO_ENABLED=0 GOOS=linux go build -o /abyss
|
||||
FROM scratch
|
||||
|
||||
COPY --from=builder /abyss /abyss
|
||||
COPY --from=builder /app/static /static
|
||||
COPY --from=builder /app/templates /templates
|
||||
|
||||
CMD ["/abyss"]
|
||||
|
Loading…
Reference in New Issue
Block a user