mirror of
https://github.com/docker/getting-started-app.git
synced 2025-07-04 08:21:08 -04:00
Compare commits
5 Commits
dependabot
...
397189647f
Author | SHA1 | Date | |
---|---|---|---|
397189647f | |||
e8da7a4cff | |||
f2d13b8483 | |||
b5e58510b6 | |||
b13a9f1409 |
2
.dockerignore
Normal file
2
.dockerignore
Normal file
@ -0,0 +1,2 @@
|
||||
node_modules
|
||||
Dockerfile
|
7
Dockerfile
Normal file
7
Dockerfile
Normal file
@ -0,0 +1,7 @@
|
||||
FROM node:18-alpine
|
||||
WORKDIR /app
|
||||
COPY . .
|
||||
RUN yarn install --production && yarn cache clean
|
||||
ENTRYPOINT ["node"]
|
||||
CMD ["src/index.js"]
|
||||
EXPOSE 3000
|
@ -6,7 +6,7 @@
|
||||
"scripts": {
|
||||
"prettify": "prettier -l --write \"**/*.js\"",
|
||||
"test": "jest",
|
||||
"dev": "nodemon src/index.js"
|
||||
"dev": "nodemon -L src/index.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"express": "^4.18.2",
|
||||
|
Reference in New Issue
Block a user