update docker instructions, fixes #278

This commit is contained in:
Aine 2025-01-18 09:21:58 +02:00
parent 0baf6ad94d
commit 9453490bca
No known key found for this signature in database
GPG Key ID: 34969C908CCA2804
4 changed files with 15 additions and 0 deletions

1
.dockerignore Normal file
View File

@ -0,0 +1 @@
/testdata

11
Dockerfile.build Normal file
View 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

View File

@ -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"

View File

@ -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: