update docker instructions, fixes #278
This commit is contained in:
parent
0baf6ad94d
commit
9453490bca
1
.dockerignore
Normal file
1
.dockerignore
Normal file
@ -0,0 +1 @@
|
||||
/testdata
|
11
Dockerfile.build
Normal file
11
Dockerfile.build
Normal file
@ -0,0 +1,11 @@
|
||||
FROM node:lts AS builder
|
||||
ARG BASE_PATH=./
|
||||
WORKDIR /src
|
||||
COPY . /src
|
||||
RUN yarn config set enableTelemetry 0 && \
|
||||
yarn install --immutable --network-timeout=300000 && \
|
||||
yarn build --base=$BASE_PATH
|
||||
|
||||
FROM ghcr.io/static-web-server/static-web-server:2
|
||||
ENV SERVER_ROOT=/app
|
||||
COPY --from=builder /src/dist /app
|
@ -261,6 +261,7 @@ You have three options:
|
||||
hostname: synapse-admin
|
||||
build:
|
||||
context: https://github.com/etkecc/synapse-admin.git
|
||||
dockerfile: Dockerfile.build
|
||||
args:
|
||||
- BUILDKIT_CONTEXT_KEEP_GIT_DIR=1
|
||||
# - NODE_OPTIONS="--max_old_space_size=1024"
|
||||
|
@ -3,8 +3,10 @@ services:
|
||||
container_name: synapse-admin
|
||||
hostname: synapse-admin
|
||||
image: ghcr.io/etkecc/synapse-admin:latest
|
||||
dockerfile: Dockerfile.build
|
||||
# build:
|
||||
# context: .
|
||||
# dockerfile: Dockerfile.build
|
||||
|
||||
# to use the docker-compose as standalone without a local repo clone,
|
||||
# replace the context definition with this:
|
||||
|
Loading…
x
Reference in New Issue
Block a user