vector-im-hydrogen-web/Dockerfile

15 lines
383 B
Docker
Raw Normal View History

FROM docker.io/node:alpine as builder
2021-09-30 04:31:39 +02:00
RUN apk add --no-cache git python3 build-base
COPY . /app
WORKDIR /app
RUN yarn install \
&& yarn build
FROM docker.io/nginx:alpine
2023-01-11 19:06:25 +01:00
# Copy the dynamic config script
COPY ./docker/dynamic-config.sh /docker-entrypoint.d/99-dynamic-config.sh
# Copy the built app from the first build stage
COPY --from=builder /app/target /usr/share/nginx/html