1
0

Created the Dockerfile

This commit is contained in:
Mathias Wagner 2023-11-19 00:54:22 +01:00
parent 1abc5c8b6f
commit 4836a55836
Signed by: Mathias
GPG Key ID: B8DC354B0A1F5B44

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