mirror of
https://github.com/UA-Fediland/synapse-admin.git
synced 2025-11-22 09:31:37 +00:00
Add BASE_PATH argument to Dockerfile
Fixes #512, #517. Change-Id: I0367f681aaf35af4a0f1b324fb0bdbef272e6db4
This commit is contained in:
parent
a490b7bc85
commit
ac3b40b188
4 changed files with 22 additions and 13 deletions
|
|
@ -1,6 +1,8 @@
|
|||
# Builder
|
||||
FROM node:lts as builder
|
||||
LABEL org.opencontainers.image.url=https://github.com/Awesome-Technologies/synapse-admin org.opencontainers.image.source=https://github.com/Awesome-Technologies/synapse-admin
|
||||
# Base path for synapse admin
|
||||
ARG BASE_PATH=./
|
||||
|
||||
WORKDIR /src
|
||||
|
||||
|
|
@ -13,7 +15,7 @@ COPY package.json .yarnrc.yml yarn.lock ./
|
|||
RUN yarn config set enableTelemetry 0 && yarn install --immutable --network-timeout=300000
|
||||
|
||||
COPY . /src
|
||||
RUN yarn build
|
||||
RUN yarn build --base=$BASE_PATH
|
||||
|
||||
# App
|
||||
FROM nginx:stable-alpine
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue