Create basic Dockerfile
This commit is contained in:
parent
41fd8974bf
commit
9eedf64c32
8
.dockerignore
Normal file
8
.dockerignore
Normal file
@ -0,0 +1,8 @@
|
||||
node_modules
|
||||
npm-debug.log
|
||||
Dockerfile
|
||||
.dockerignore
|
||||
.env
|
||||
.git
|
||||
.gitignore
|
||||
.env.example
|
17
Dockerfile
Normal file
17
Dockerfile
Normal file
@ -0,0 +1,17 @@
|
||||
FROM node:18-alpine
|
||||
|
||||
RUN mkdir /app
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY . /app
|
||||
|
||||
RUN chown -R node:node /app
|
||||
|
||||
USER node
|
||||
|
||||
RUN npm install
|
||||
|
||||
EXPOSE 3001
|
||||
|
||||
CMD [ "npm", "run", "start" ]
|
Loading…
x
Reference in New Issue
Block a user