fix: remove internal package and move it to cmd (#321)

This commit is contained in:
Julien Neuhart
2021-08-23 18:33:26 +02:00
committed by GitHub
parent 551faca3a3
commit 5a439ca70c
4 changed files with 12 additions and 11 deletions

View File

@@ -19,13 +19,12 @@ RUN go mod download &&\
# Copy the source code.
COPY cmd ./cmd
COPY internal ./internal
COPY pkg ./pkg
# Build the binary.
ARG GOTENBERG_VERSION
RUN go build -o gotenberg -ldflags "-X 'github.com/gotenberg/gotenberg/v7/internal/app/gotenberg.version=$GOTENBERG_VERSION'" cmd/gotenberg/main.go
RUN go build -o gotenberg -ldflags "-X 'github.com/gotenberg/gotenberg/v7/cmd.Version=$GOTENBERG_VERSION'" cmd/gotenberg/main.go
FROM debian:buster-slim