prueba tecnica
This commit is contained in:
13
docker/frontend.Dockerfile
Normal file
13
docker/frontend.Dockerfile
Normal file
@@ -0,0 +1,13 @@
|
||||
# ---------- build ----------
|
||||
FROM node:20-alpine AS build
|
||||
WORKDIR /app
|
||||
COPY front/contracts-frontend/package*.json ./
|
||||
RUN npm ci
|
||||
COPY front/contracts-frontend .
|
||||
RUN npm run build
|
||||
|
||||
# ---------- runtime ----------
|
||||
FROM caddy:2-alpine
|
||||
COPY --from=build /app/dist /usr/share/caddy
|
||||
COPY docker/Caddyfile /etc/caddy/Caddyfile
|
||||
EXPOSE 80
|
||||
Reference in New Issue
Block a user