2022-12-13 12:46:08 +00:00
|
|
|
FROM node:19
|
|
|
|
|
|
|
|
# Install app dependencies
|
|
|
|
# A wildcard is used to ensure both package.json AND package-lock.json are copied
|
|
|
|
# where available (npm@5+)
|
|
|
|
COPY package*.json ./
|
|
|
|
|
|
|
|
RUN npm install
|
|
|
|
# If you are building your code for production
|
|
|
|
# RUN npm ci --only=production
|
|
|
|
|
|
|
|
# Bundle app source
|
2023-04-20 17:54:59 +00:00
|
|
|
|
2022-12-13 12:46:08 +00:00
|
|
|
COPY . .
|
|
|
|
|
2023-04-20 17:54:59 +00:00
|
|
|
COPY ./certificates/* /usr/local/share/ca-certificates/
|
|
|
|
|
|
|
|
RUN chmod 644 /usr/local/share/ca-certificates/*.crt && update-ca-certificates
|
|
|
|
|
2023-05-04 20:52:39 +00:00
|
|
|
EXPOSE ${API_PORT}
|
2022-12-13 12:46:08 +00:00
|
|
|
|
2023-04-20 17:54:59 +00:00
|
|
|
CMD [ "npm", "start" ]
|