Skip to content

Commit

Permalink
build: Version
Browse files Browse the repository at this point in the history
  • Loading branch information
kroese authored Dec 1, 2023
1 parent 8020004 commit 294f884
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@ FROM --platform=$BUILDPLATFORM node:alpine as builder

WORKDIR /portainer-backup

RUN apk update && apk add --no-cache tzdata
RUN mkdir -p /portainer-backup/src
COPY package.json /portainer-backup
COPY src/*.js /portainer-backup/src
RUN sed -i "s/0.0.0-development/${VERSION_ARG}/" /portainer-backup/package.json

ARG VERSION_ARG="0.0"
RUN sed -i "s/0.0.0-development/${VERSION_ARG}/" /portainer-backup/package.json
RUN apk update && apk add --no-cache tzdata

ARG TARGETPLATFORM
ENV NODE_ENV=production

Expand Down

0 comments on commit 294f884

Please sign in to comment.