mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-22 19:14:52 +01:00
15 lines
383 B
Docker
15 lines
383 B
Docker
FROM docker.io/node:alpine as builder
|
|
RUN apk add --no-cache git python3 build-base
|
|
COPY . /app
|
|
WORKDIR /app
|
|
RUN yarn install \
|
|
&& yarn build
|
|
|
|
FROM docker.io/nginx:alpine
|
|
|
|
# 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
|