Dockerfile

Dockerfile for build fron+nginx_balancer. Need tpml file config in repo. docker/templates/nginx.tmpl /app/nginx.tmpl
 avatar
Geksogen
yaml
2 years ago
310 B
2
Indexable
Never
FROM node:14.17.3 as builder
# Create app directory
WORKDIR /usr/src/app
COPY . .
RUN npm install \
    && npm run build

FROM nginxproxy/nginx-proxy:latest
WORKDIR /app
COPY docker/templates/nginx.tmpl /app/nginx.tmpl
COPY --from=builder /usr/src/app/dist/frontend/ /usr/share/nginx/html/
EXPOSE 80