openreplay/frontend/Dockerfile
rjshrjndrn c1fa34d2ff fix(build): correct file name
Signed-off-by: rjshrjndrn <rjshrjndrn@gmail.com>
2022-06-24 16:07:33 +02:00

18 lines
460 B
Docker

from node:14-stretch-slim AS builder
workdir /work
COPY . .
RUN cp .env.sample .env
RUN yarn
RUN yarn build
FROM nginx:alpine as cicd
LABEL maintainer=Rajesh<rajesh@openreplay.com>
COPY public /var/www/openreplay
COPY nginx.conf /etc/nginx/conf.d/default.conf
# Default step in docker build
FROM nginx:alpine
LABEL maintainer=Rajesh<rajesh@openreplay.com>
COPY --from=builder /work/public /var/www/openreplay
COPY nginx.conf /etc/nginx/conf.d/default.conf