mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-22 19:14:52 +01:00
15 lines
356 B
Docker
15 lines
356 B
Docker
FROM docker.io/node:alpine as builder
|
|
RUN apk add --no-cache git python3 build-base
|
|
|
|
WORKDIR /app
|
|
|
|
# Copy package.json and yarn.lock and install dependencies first to speed up subsequent builds
|
|
COPY package.json yarn.lock /app/
|
|
RUN yarn install
|
|
|
|
COPY . /app
|
|
RUN yarn build
|
|
|
|
FROM docker.io/nginx:alpine
|
|
COPY --from=builder /app/target /usr/share/nginx/html
|