feature: Work on Dockerfile for frontend

This commit is contained in:
Dominic Harris 2022-03-17 08:44:53 -04:00
parent 324f5b381a
commit cef72bb8ac
No known key found for this signature in database
GPG Key ID: 93CCF85F3E2A4F65
2 changed files with 11 additions and 2 deletions

View File

@ -14,8 +14,8 @@ RUN CARGO_INCREMENTAL=1 cargo build --release
FROM alpine:3.15
WORKDIR /app
WORKDIR /backend
RUN apk update && apk add --no-cache build-base openssl
COPY --from=builder /build/zer0bin/target/release/zer0bin-bin .
CMD ["/app/zer0bin-bin"]
CMD ["/backend/zer0bin-bin"]

9
frontend/Dockerfile Normal file
View File

@ -0,0 +1,9 @@
FROM node:lts-alpine
WORKDIR /frontend
COPY package.json ./
RUN npm install
COPY . .
RUN npm run build index.pug