Skip to content

Commit

Permalink
[#19] fix docker set version arg
Browse files Browse the repository at this point in the history
  • Loading branch information
Kreezag committed Sep 16, 2023
1 parent 650f1e5 commit a94eb8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ FROM alpine/git as git
ARG REPOSITORY=https://github.com/buggregator/frontend
ARG BRANCH=master
RUN git clone -b $BRANCH $REPOSITORY /app
ARG APP_VERSION=1.0.0

# Build JS files
FROM node:19-alpine as frontend
COPY --from=git /app /app
WORKDIR /app

ARG APP_VERSION=1.0.0
ENV NODE_OPTIONS=--openssl-legacy-provider

RUN sed -i "s/\"version\": \".*\"/\"version\": \"${APP_VERSION}\"/" package.json
Expand Down

0 comments on commit a94eb8d

Please sign in to comment.