21 lines
449 B
Docker
21 lines
449 B
Docker
# Use Image Node Alpine For Build
|
|
FROM node:13.14.0-alpine3.10
|
|
|
|
# Default Working Directory
|
|
WORKDIR /home/app/app
|
|
|
|
# Copy Build Directory To Public Directory in Docker
|
|
COPY build public
|
|
|
|
# Copy server.js To server , we open server from here
|
|
COPY ./dockers/server.js ./server.js
|
|
|
|
# Copy package.json for server to docker package json
|
|
COPY ./dockers/server.package.json ./package.json
|
|
|
|
# install express , for open server
|
|
RUN npm install express
|
|
|
|
|
|
|