vector-im-hydrogen-web/Dockerfile

15 lines
423 B
Docker
Raw Normal View History

2022-02-02 15:26:02 +01:00
FROM --platform=${BUILDPLATFORM} docker.io/library/node:16.13-alpine3.15 as builder
2021-09-30 04:31:39 +02:00
RUN apk add --no-cache git python3 build-base
WORKDIR /app
2022-02-02 15:26:02 +01:00
# 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