Skip to content

Commit

Permalink
fix(docker): Fix broken Docker image
Browse files Browse the repository at this point in the history
Regression caused by recent code refactoring
  • Loading branch information
Göran Sander committed Aug 18, 2023
1 parent cb2f518 commit 16f57cd
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
12 changes: 12 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,25 @@
.vscode
.dockerignore
.gitignore
.dockerignore
.eslintrc.yml
.jshintrc
.prettierignore
.prettierrc
.prettierrc.yaml
.snyk
.cache_ggshield
.pre-commit-config.yaml

config
config/*
cert
docs
docker-compose.yml
Dockerfile
img
log
scriptlog
node_modules
package-lock.json
renovate.json
Expand Down
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ COPY package.json .
RUN npm i

# Copy app's source files
COPY ./src .
COPY . .

# Create and use non-root user
RUN groupadd -r nodejs \
Expand All @@ -22,6 +22,6 @@ RUN groupadd -r nodejs \
USER nodejs

# Set up Docker healthcheck
HEALTHCHECK --interval=12s --timeout=12s --start-period=30s CMD ["node", "docker-healthcheck.js"]
HEALTHCHECK --interval=12s --timeout=12s --start-period=30s CMD ["node", "src/docker-healthcheck.js"]

CMD ["node", "butler-sos.js"]
CMD ["node", "src/butler-sos.js"]

0 comments on commit 16f57cd

Please sign in to comment.