mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-15 20:54:59 +08:00
21 lines
309 B
Docker
21 lines
309 B
Docker
# Builder
|
|
FROM node:alpine as builder
|
|
|
|
COPY . /src
|
|
|
|
WORKDIR /src
|
|
|
|
RUN apk add --no-cache git \
|
|
&& npm install \
|
|
&& npm run build
|
|
|
|
|
|
# App
|
|
FROM nginx:latest
|
|
|
|
COPY --from=builder /src/webapp /app
|
|
COPY config.sample.json /app/config.json
|
|
|
|
RUN rm -rf /usr/share/nginx/html \
|
|
&& ln -s /app /usr/share/nginx/html
|