test_react_hook/dockers/Dockerfile

21 lines
449 B
Docker
Raw Permalink Normal View History

2020-05-07 14:04:20 +07:00
# 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