Skip to content

Commit

Permalink
chore(image): update dockerfile to fit config.js.example
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhen-Bo committed Feb 4, 2025
1 parent 53a999f commit 7d8078d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ RUN npm install --no-audit --fund false
# Copy the rest of the files to the container
COPY . .

# Create and setup entrypoint script
RUN echo '#!/bin/sh\nchmod 666 /app/config.js\nexec "$@"' > /app/entrypoint.sh && \
chmod +x /app/entrypoint.sh

# Change ownership of files in lib/bin and set permissions
RUN chown -R node:node lib/bin/* && \
chmod u+x lib/bin/* && \
Expand All @@ -23,5 +27,8 @@ USER node

RUN ls -la

# Set the entrypoint script
ENTRYPOINT ["/app/entrypoint.sh"]

# Start the application
CMD ["node", "clewd.js"]
CMD ["node", "clewd.js"]

0 comments on commit 7d8078d

Please sign in to comment.