Add docker support
This commit is contained in:
20
Dockerfile
Normal file
20
Dockerfile
Normal file
@@ -0,0 +1,20 @@
|
||||
# Build application
|
||||
FROM cubetiq/calpine-node AS builder
|
||||
|
||||
WORKDIR /app
|
||||
COPY package.json ./
|
||||
# Set custom registry for npm registry (from cubetiq local server)
|
||||
RUN yarn config set registry https://r.ctdn.net
|
||||
RUN yarn
|
||||
COPY . .
|
||||
RUN yarn build
|
||||
|
||||
# Build production image
|
||||
FROM nginx:alpine
|
||||
LABEL maintainer="sombochea@cubetiqs.com"
|
||||
|
||||
WORKDIR /usr/share/nginx/html
|
||||
COPY --from=builder /app/build/ /usr/share/nginx/html
|
||||
COPY --from=builder /app/docker/nginx.conf /etc/nginx/conf.d
|
||||
RUN rm /etc/nginx/conf.d/default.conf
|
||||
EXPOSE 80
|
||||
Reference in New Issue
Block a user