nomad

HCL and Docker files for Nomad deployments
git clone https://git.in0rdr.ch/nomad.git
Log | Files | Refs | Pull requests |Archive

commit bb6e360166a47ce7e9508e65a32468c33e50aed6
parent 9153d137b65b5d97ba6b21706cdc6ef02bdd2a9d
Author: Andreas Gruhler <agruhl@gmx.ch>
Date:   Sat, 27 Sep 2025 12:23:39 +0200

feat: remove myheats-api and nginx Dockerfiles

See:
* https://code.in0rdr.ch/myheats/file/dockerfiles/api/Dockerfile.html
* https://code.in0rdr.ch/myheats/file/dockerfiles/frontend/Dockerfile.html

Diffstat:
Ddocker/docker-myheats-api/Dockerfile | 14--------------
Ddocker/docker-myheats-nginx/Dockerfile | 50--------------------------------------------------
Ddocker/docker-myheats-nginx/myheats.conf | 8--------
3 files changed, 0 insertions(+), 72 deletions(-)

diff --git a/docker/docker-myheats-api/Dockerfile b/docker/docker-myheats-api/Dockerfile @@ -1,14 +0,0 @@ -FROM docker.io/node:18-alpine - -RUN apk update -RUN apk add --no-cache git - -WORKDIR /app -RUN git clone --depth 1 https://git.in0rdr.ch/myheats.git /app - -RUN npm ci - -ENV NODE_ENV production - -# run nodejs api/backend server -CMD [ "npm", "run", "api" ] diff --git a/docker/docker-myheats-nginx/Dockerfile b/docker/docker-myheats-nginx/Dockerfile @@ -1,50 +0,0 @@ -FROM docker.io/node:18-alpine AS builder - -# use NODE_ENV=prod to exclude the `devDependencies` (e..g, vite) -# we require `vite` command in `npm run build` below -ARG NODE_ENV=dev - -# Read args from build command -ARG VITE_APP_DOC_TITLE='My Heats' -ARG VITE_SESSION_TTL=259200 #72h -ARG VITE_API_URI=https://api-myheats-demo.p0c.ch -ARG VITE_API_PORT=443 -ARG VITE_WS_URI=wss://api-myheats-demo.p0c.ch -ARG VITE_WS_PORT=443 -ARG VITE_LOCALE=de-CH - -# Configure the env with the args -ENV VITE_APP_DOC_TITLE="$VITE_APP_DOC_TITLE" -ENV NODE_ENV="$NODE_ENV" -ENV VITE_SESSION_TTL="$VITE_SESSION_TTL" -ENV VITE_API_URI="$VITE_API_URI" -ENV VITE_API_PORT="$VITE_API_PORT" -ENV VITE_WS_URI="$VITE_WS_URI" -ENV VITE_WS_PORT="$VITE_WS_PORT" -ENV VITE_LOCALE="$VITE_LOCALE" - -RUN apk update -RUN apk add --no-cache git - -WORKDIR /app -RUN git clone --depth 1 https://git.in0rdr.ch/myheats.git /app - -# install npm dependencies to node_modules -# https://docs.npmjs.com/cli/v10/commands/npm-ci -RUN npm ci - -# vite static build (for production) -# https://vitejs.dev/guide/build -RUN npm run build - -FROM docker.io/nginx:alpine - -# install the static files -RUN rm -rf /usr/share/nginx/html/* -COPY --from=builder /app/dist/ /usr/share/nginx/html/ - -# install config file -RUN rm -rf /etc/nginx/conf.d/* -COPY myheats.conf /etc/nginx/conf.d/ - -CMD ["nginx", "-g", "daemon off;"] diff --git a/docker/docker-myheats-nginx/myheats.conf b/docker/docker-myheats-nginx/myheats.conf @@ -1,8 +0,0 @@ -server { - listen 80; - - location / { - root /usr/share/nginx/html; - try_files $uri /index.html; - } -}