synapse-admin/Dockerfile
Manuel Stahl 8db881a64d Use current node image as builder
Change-Id: I2bccf5bcd21e37625477695ee927d49dd4333ac4
2020-08-25 17:19:17 +02:00

17 lines
259 B
Docker

# Builder
FROM node:current as builder
WORKDIR /src
COPY . /src
RUN yarn --network-timeout=100000 install
RUN yarn build
# App
FROM nginx:alpine
COPY --from=builder /src/build /app
RUN rm -rf /usr/share/nginx/html \
&& ln -s /app /usr/share/nginx/html