mirror of
https://github.com/gamer-ai/eletypes-frontend.git
synced 2024-11-25 16:36:34 +08:00
refactor/Dockerfile and docker-compose.yaml
This commit is contained in:
parent
2f26c10073
commit
2c809d8d97
1
.dockerignore
Normal file
1
.dockerignore
Normal file
@ -0,0 +1 @@
|
||||
node_modules
|
10
Dockerfile
10
Dockerfile
@ -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
|
||||
|
@ -1,7 +1,7 @@
|
||||
version: '3.3'
|
||||
services:
|
||||
eletypes-react:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
image: eletypes_react
|
||||
ports:
|
||||
|
Loading…
Reference in New Issue
Block a user