Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ on:
- master

env:
REGISTRY: docker.io
IMAGE_NAME: zerob13/mock-openai-api
REGISTRY: ghcr.io
IMAGE_NAME: f213/mock-openai-api

jobs:
build-and-push:
Expand All @@ -35,8 +35,8 @@ jobs:
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata
id: meta
Expand Down Expand Up @@ -69,4 +69,4 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
repository: ${{ env.IMAGE_NAME }}
readme-filepath: ./README.md
readme-filepath: ./README.md
7 changes: 6 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Build stage
FROM node:22-alpine
FROM node:22-alpine3.21

# Install dumb-init for proper signal handling
RUN apk add --no-cache dumb-init==1.2.5-r3

WORKDIR /app

Expand All @@ -25,5 +28,7 @@ ENV PORT=3000
ENV HOST=0.0.0.0
ENV VERBOSE=true

ENTRYPOINT ["/usr/bin/dumb-init", "--"]

# Start the application with verbose logging enabled
CMD ["node", "dist/index.js"]