fix: use correct ARG syntax for multistage builds

This commit is contained in:
Jack Baron committed 2021-07-18 00:52:17 +01:00
1 parent cba3382b95
commit a3dbec5091
1 file changed
+5 -1
+5 -1
View File
@@ -1,7 +1,8 @@
# syntax=docker/dockerfile:1.2
ARG APP_PATH=/opt/outline
FROM node:14-alpine AS deps-common
ARG APP_PATH /opt/outline
ARG APP_PATH
WORKDIR $APP_PATH
COPY ./package.json ./yarn.lock ./
@@ -17,6 +18,8 @@ RUN yarn install --production=true --frozen-lockfile && \
# ---
FROM node:14-alpine AS builder
ARG APP_PATH
WORKDIR $APP_PATH
COPY . .
@@ -26,6 +29,7 @@ RUN yarn build
# ---
FROM node:14-alpine AS runner
ARG APP_PATH
WORKDIR $APP_PATH
ENV NODE_ENV production