mirror of
https://github.com/outline/outline.git
synced 2026-11-26 15:43:48 +03:00
fix: use correct ARG syntax for multistage builds
This commit is contained in:
1 file changed
+5
-1
+5
-1
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user