b2tools / Dockerfile
hankchin's picture
Upload 2 files
3e50d6f verified
Raw History Blame Contribute Delete
349 Bytes
FROM node:20-slim
WORKDIR /app
# Copy the bundled application file and public folder
COPY app.js .
COPY public ./public
# Default environment variables
ENV PORT=7860
ENV NODE_ENV=production
# Make the application executable
RUN chmod +x app.js
# Expose the port that the application uses
EXPOSE 7860
# Start the application directly
CMD ["./app.js"]