refactor: move node and builder images

This commit is contained in:
2023-07-03 14:36:47 +02:00
parent 4e4c7b5cc9
commit 11c9d742cd
26 changed files with 239 additions and 448 deletions

View File

@@ -0,0 +1,12 @@
FROM registry.gitlab.com/openstapps/projectmanagement/node:v18
USER root
RUN apk add --update python3 py3-pip make g++ gcompat
USER node
ADD --chown=node:node . /app
ENV NODE_ENV=production
WORKDIR /app
EXPOSE 3000
ENTRYPOINT ["node", "app.js"]

View File

@@ -21,11 +21,13 @@
"files": [
"app.js",
"lib",
"Dockerfile",
"README.md",
"CHANGELOG.md"
],
"scripts": {
"build": "tsup-node",
"deploy": "pnpm --prod --filter=@openstapps/api-cli deploy ../../.deploy/api-cli",
"format": "prettier . -c --ignore-path ../../.gitignore",
"format:fix": "prettier --write . --ignore-path ../../.gitignore",
"lint": "tsc --noEmit && eslint --ext .ts src/",