Created the Dockerfile
This commit is contained in:
parent
1abc5c8b6f
commit
4836a55836
16
Dockerfile
Normal file
16
Dockerfile
Normal file
@ -0,0 +1,16 @@
|
||||
FROM node:16-alpine
|
||||
RUN apk add g++ make cmake python3 --no-cache
|
||||
|
||||
ENV NODE_ENV=production
|
||||
|
||||
WORKDIR /pma
|
||||
|
||||
COPY --chown=node:node ./api /pma
|
||||
|
||||
RUN npm install --production
|
||||
|
||||
RUN chown -R node:node /pma
|
||||
|
||||
USER node
|
||||
EXPOSE 3000
|
||||
CMD ["node", "server"]
|
Loading…
x
Reference in New Issue
Block a user