vector-im-hydrogen-web/Dockerfile
2022-07-04 16:18:05 +02:00

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