Skip to content

Commit

Permalink
update dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
amirylm committed Jul 5, 2024
1 parent e356c3a commit 03ff95c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ RUN apt-get update && \
&& rm -rf /var/lib/apt/lists/*

ARG APP_VERSION=nightly
ARG APP_NAME=p2pmq
ARG APP_NAME=pmq
ARG BUILD_TARGET=pmq

WORKDIR /p2pmq
WORKDIR /pmq

COPY go.mod go.sum ./
RUN go mod download
Expand All @@ -27,10 +27,10 @@ ARG BUILD_TARGET=pmq

RUN apk --no-cache --upgrade add ca-certificates bash

WORKDIR /p2pmq
WORKDIR /pmq

COPY --from=builder /p2pmq/.env* ./
COPY --from=builder /p2pmq/resources/config/*.p2pmq.yaml ./
COPY --from=builder /p2pmq/bin/${BUILD_TARGET} ./app
COPY --from=builder /pmq/.env* ./
COPY --from=builder /pmq/resources/config/*.pmq.yaml ./
COPY --from=builder /pmq/bin/${BUILD_TARGET} ./app

CMD ["./app"]
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
APP_NAME?=p2pmq
APP_NAME?=pmq
BUILD_TARGET?=${APP_NAME}
BUILD_IMG?=${APP_NAME}
APP_VERSION?=$(git describe --tags $(git rev-list --tags --max-count=1) 2> /dev/null || echo "nightly")
Expand Down

0 comments on commit 03ff95c

Please sign in to comment.