-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from ToxicToast/hotfix/dockerimages
Hotfix/dockerimages
- Loading branch information
Showing
20 changed files
with
113 additions
and
392 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
.nx | ||
.vscode | ||
.vscode/* | ||
apps | ||
apps/* | ||
libs | ||
libs/* | ||
node_modules | ||
node_modules/* | ||
.github | ||
.gitignore/* | ||
tools | ||
.dockerignore | ||
.editorconfig | ||
.eslintignore | ||
.eslintrc.json | ||
.gitignore | ||
.lintstagedrc | ||
.prettierignore | ||
.prettierrc | ||
jest.config.ts | ||
jest.preset.js | ||
nx.json | ||
README.md | ||
tsconfig.base.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,20 @@ | ||
FROM docker.io/node:lts-alpine | ||
|
||
ENV HOST=0.0.0.0 | ||
ENV PORT=3000 | ||
|
||
# Stufe 1: Build-Image | ||
FROM docker.io/node:22-alpine as build | ||
WORKDIR /app | ||
COPY dist/apps/apialerts-service . | ||
COPY package*.json ./ | ||
RUN npm install --omit=dev | ||
|
||
RUN addgroup --system apialerts-service && \ | ||
adduser --system -G apialerts-service apialerts-service | ||
# Stufe 2: Produktions-Image | ||
|
||
COPY dist/apps/apialerts-service . | ||
RUN chown -R apialerts-service:apialerts-service . | ||
ENV APP_VERSION = local | ||
|
||
FROM docker.io/node:22-alpine | ||
WORKDIR /app | ||
COPY --from=build /app /app | ||
|
||
RUN npm i --omit=dev --omit=optional | ||
RUN npm i --save @toxictoast/azkaban-base-types | ||
# Expose Port | ||
EXPOSE 3000 | ||
|
||
# Entry Point | ||
CMD [ "node", "main.js" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,20 @@ | ||
FROM docker.io/node:lts-alpine | ||
|
||
ENV HOST=0.0.0.0 | ||
ENV PORT=3000 | ||
|
||
# Stufe 1: Build-Image | ||
FROM docker.io/node:22-alpine as build | ||
WORKDIR /app | ||
COPY dist/apps/azkaban-gateway . | ||
COPY package*.json ./ | ||
RUN npm install --omit=dev | ||
|
||
RUN addgroup --system azkaban-gateway && \ | ||
adduser --system -G azkaban-gateway azkaban-gateway | ||
# Stufe 2: Produktions-Image | ||
|
||
COPY dist/apps/azkaban-gateway . | ||
RUN chown -R azkaban-gateway:azkaban-gateway . | ||
ENV APP_VERSION = local | ||
|
||
FROM docker.io/node:22-alpine | ||
WORKDIR /app | ||
COPY --from=build /app /app | ||
|
||
RUN npm i --omit=dev --omit=optional | ||
RUN npm i --save @toxictoast/azkaban-base-types | ||
# Expose Port | ||
EXPOSE 3000 | ||
|
||
CMD [ "node", "main.js" ] | ||
# Entry Point | ||
CMD [ "node", "main.js" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.