mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 19:45:05 +01:00
15 lines
423 B
Docker
15 lines
423 B
Docker
FROM --platform=${BUILDPLATFORM} docker.io/library/node:16.13-alpine3.15 as builder
|
|
RUN apk add --no-cache git python3 build-base
|
|
WORKDIR /app
|
|
|
|
# Install the dependencies first
|
|
COPY yarn.lock package.json ./
|
|
RUN yarn install
|
|
|
|
# Copy the rest and build the app
|
|
COPY . .
|
|
RUN yarn build
|
|
|
|
FROM --platform=${TARGETPLATFORM} docker.io/nginxinc/nginx-unprivileged:1.21-alpine
|
|
COPY --from=builder /app/target /usr/share/nginx/html
|