mirror of
https://github.com/sasjs/server.git
synced 2026-01-09 07:20:05 +00:00
chore: added docker containers
This commit is contained in:
10
Dockerfile
Normal file
10
Dockerfile
Normal file
@@ -0,0 +1,10 @@
|
||||
FROM node:lts-alpine
|
||||
ENV NODE_ENV=production
|
||||
WORKDIR /usr/src/app
|
||||
COPY ["package.json", "package-lock.json*", "npm-shrinkwrap.json*", "./"]
|
||||
RUN npm install --silent && mv node_modules ../
|
||||
COPY . .
|
||||
EXPOSE 5000
|
||||
RUN chown -R node /usr/src/app
|
||||
USER node
|
||||
CMD ["npm", "start"]
|
||||
Reference in New Issue
Block a user