Skip to content

feat: update docker configuration#26

Merged
znanx merged 1 commit into
znanx:masterfrom
Kiznaiverr:master
Jun 3, 2026
Merged

feat: update docker configuration#26
znanx merged 1 commit into
znanx:masterfrom
Kiznaiverr:master

Conversation

@Kiznaiverr

Copy link
Copy Markdown
Contributor

update docker configuration to make it easier for people who are used to deploying with docker

Copilot AI review requested due to automatic review settings June 1, 2026 07:37

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Adds containerization artifacts to run the Node service via Docker (and docker-compose), updating the base image and runtime defaults.

Changes:

  • Introduces docker-compose.yml for local/prod container orchestration (ports, volumes, env, memory limit).
  • Updates Dockerfile to Node 22 (bookworm-slim), installs OS deps, changes exposed port, and tweaks npm install + Node startup args.
  • Adds .dockerignore to shrink build context.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 6 comments.

File Description
docker-compose.yml Defines a moon-bot service with port mapping, bind mounts, env, and memory limit.
Dockerfile Updates base image, dependency install, npm install behavior, exposed port, and startup command.
.dockerignore Excludes common local artifacts (and Docker-related files) from the build context.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread Dockerfile
EXPOSE 8080

CMD ["node", "index.js"] No newline at end of file
CMD ["node", "index.js", "--max-old-space-size=1024"] No newline at end of file
Comment thread Dockerfile
Comment on lines 5 to +11
RUN apt-get update && \
apt-get install -y \
ffmpeg \
imagemagick \
webp && \
apt-get upgrade -y && \
rm -rf /var/lib/apt/lists/*
apt-get install -y \
ffmpeg \
imagemagick \
webp && \
apt-get upgrade -y && \
rm -rf /var/lib/apt/lists/*
Comment thread Dockerfile
Comment on lines +13 to +15
COPY package.json package-lock.json* ./

RUN npm install
RUN npm install --production
Comment thread docker-compose.yml
Comment on lines +7 to +9
volumes:
- .:/app
- /app/node_modules
Comment thread docker-compose.yml
mem_limit: 1g
restart: unless-stopped
environment:
- NODE_ENV=production
Comment thread docker-compose.yml
volumes:
- .:/app
- /app/node_modules
mem_limit: 1g
@znanx znanx merged commit f8af036 into znanx:master Jun 3, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants