mirror of
https://github.com/cinnyapp/cinny.git
synced 2024-12-29 10:56:10 +00:00
21 lines
383 B
Docker
21 lines
383 B
Docker
|
## Builder
|
||
|
FROM node:14-alpine as builder
|
||
|
|
||
|
WORKDIR /src
|
||
|
|
||
|
COPY . /src
|
||
|
RUN npm install \
|
||
|
&& npm run build
|
||
|
|
||
|
|
||
|
## App
|
||
|
FROM nginx:alpine
|
||
|
|
||
|
COPY --from=builder /src/dist /app
|
||
|
|
||
|
# Insert wasm type into Nginx mime.types file so they load correctly.
|
||
|
RUN sed -i '3i\ \ \ \ application/wasm wasm\;' /etc/nginx/mime.types
|
||
|
|
||
|
RUN rm -rf /usr/share/nginx/html \
|
||
|
&& ln -s /app /usr/share/nginx/html
|