refactor/Dockerfile and docker-compose.yaml

This commit is contained in:
rendi12345678 2024-08-01 00:36:04 +07:00
parent 2f26c10073
commit 2c809d8d97
3 changed files with 6 additions and 7 deletions

1
.dockerignore Normal file
View File

@ -0,0 +1 @@
node_modules

View File

@ -1,15 +1,13 @@
FROM node:18
FROM node
WORKDIR /eletypes_react
ADD package.json package-lock.json /eletypes_react
COPY package*.json ./
RUN npm install
ADD src/ ./src
ADD public/ ./public
COPY . .
EXPOSE 3000
CMD [ "npm", "start" ]
CMD npm start

View File

@ -1,7 +1,7 @@
version: '3.3'
services:
eletypes-react:
build:
context: .
dockerfile: Dockerfile
image: eletypes_react
ports: