Update Dockerfile

This commit is contained in:
Telegram Bot 2022-12-30 23:30:07 +02:00 committed by GitHub
parent 810b570621
commit e4ae37bb81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ COPY . .
RUN go build \
-o pasty \
-ldflags "\
-X github.com/lus/pasty/internal/static.Version=$PASTY_VERSION" \
-X github.com/c2bot/pastys/internal/static.Version=$PASTY_VERSION" \
./cmd/pasty/main.go
# Run the application in an empty alpine environment
@ -23,4 +23,4 @@ WORKDIR /root
COPY --from=build /app/pasty .
COPY web ./web/
EXPOSE 8080
CMD ["./pasty"]
CMD ["./pasty"]