diff --git a/.github/workflows/build-docker.yml b/.github/workflows/build-docker.yml deleted file mode 100644 index 1b9be6b..0000000 --- a/.github/workflows/build-docker.yml +++ /dev/null @@ -1,18 +0,0 @@ -# name: Build & Push Docker Image to container image registry - -# on: -# release: -# types: [created] -# push: -# branches: -# - main -# pull_request: -# branches: -# - main -# paths: -# - "Dockerfile" - -# jobs: -# docker: -# uses: stegripe/workflows/.github/workflows/docker-build.yml@main -# secrets: inherit diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index 09fe18b..0000000 --- a/Dockerfile +++ /dev/null @@ -1,39 +0,0 @@ -FROM ghcr.io/hazmi35/node:21-dev-alpine as build-stage - -# Prepare pnpm with corepack (experimental feature) -RUN corepack enable && corepack prepare pnpm@latest - -# Copy package.json, lockfile and npm config files -COPY package.json pnpm-lock.yaml *.npmrc ./ - -# Fetch dependencies to virtual store -RUN pnpm fetch - -# Install dependencies -RUN pnpm install --offline --frozen-lockfile - -# Copy Project files -COPY . . - -# Build TypeScript Project -RUN pnpm run build - -# Prune devDependencies -RUN pnpm prune --production - -# Get ready for production -FROM ghcr.io/hazmi35/node:21-alpine - -LABEL name "template" -LABEL maintainer "Stegripe " - -# Copy needed files -COPY --from=build-stage /tmp/build/package.json . -COPY --from=build-stage /tmp/build/node_modules ./node_modules -COPY --from=build-stage /tmp/build/dist ./dist - -# Additional Environment Variables -ENV NODE_ENV production - -# Start the app with node -CMD ["node", "--es-module-specifier-resolution=node", "dist/index.js"]