Create basic Dockerfile

This commit is contained in:
Nick Playfair 2024-01-04 15:36:51 +00:00
parent 41fd8974bf
commit 9eedf64c32
2 changed files with 25 additions and 0 deletions

8
.dockerignore Normal file
View File

@ -0,0 +1,8 @@
node_modules
npm-debug.log
Dockerfile
.dockerignore
.env
.git
.gitignore
.env.example

17
Dockerfile Normal file
View 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" ]