mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 19:45:05 +01:00
15 lines
404 B
Docker
15 lines
404 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/library/nginx:alpine
|
|
COPY --from=builder /app/target /usr/share/nginx/html
|