mirror of
https://github.com/kjuulh/dagger-rs.git
synced 2024-11-30 10:33:05 +01:00
16 lines
187 B
Docker
16 lines
187 B
Docker
|
FROM node:16 as builder
|
||
|
|
||
|
COPY . /src
|
||
|
|
||
|
WORKDIR /src
|
||
|
|
||
|
RUN npm install
|
||
|
|
||
|
RUN npm test -- --watchAll=false
|
||
|
|
||
|
RUN npm run build
|
||
|
|
||
|
FROM nginx
|
||
|
|
||
|
COPY --from=builder /src/build /usr/share/nginx/html
|