forked from UKSOURCE/cms.hailearning.edu.vn
del docker and rm cache package-lock.json
This commit is contained in:
BIN
.env.example
BIN
.env.example
Binary file not shown.
17
Dockerfile
17
Dockerfile
@@ -1,17 +0,0 @@
|
|||||||
FROM node:18-alpine
|
|
||||||
|
|
||||||
RUN mkdir -p /home/node/app/node_modules && chown -R node:node /home/node/app
|
|
||||||
|
|
||||||
WORKDIR /home/node/app
|
|
||||||
|
|
||||||
COPY --chown=node:node package*.json ./
|
|
||||||
|
|
||||||
USER node
|
|
||||||
|
|
||||||
RUN npm install
|
|
||||||
|
|
||||||
COPY --chown=node:node . .
|
|
||||||
|
|
||||||
EXPOSE 3000
|
|
||||||
|
|
||||||
CMD [ "npm", "start" ]
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
version: '3.8'
|
|
||||||
|
|
||||||
services:
|
|
||||||
app_cms_ggcamp:
|
|
||||||
build: .
|
|
||||||
container_name: my_node_app_cms_ggcamp
|
|
||||||
restart: unless-stopped
|
|
||||||
environment:
|
|
||||||
- NODE_ENV=production
|
|
||||||
volumes:
|
|
||||||
- .:/home/node/app
|
|
||||||
- /home/node/app/node_modules
|
|
||||||
network_mode: host
|
|
||||||
2891
package-lock.json
generated
2891
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user