Files
ButlerBot/Dockerfile
2024-09-12 14:37:08 +00:00

20 lines
298 B
Docker

FROM node:lts-alpine
# Create app directory and copy the app
WORKDIR /app
COPY . .
# Run as non-root user
RUN addgroup -g 1001 -S nodejs
RUN adduser -S nodejs -u 1001
RUN chown -R nodejs:nodejs /app
USER nodejs
# Install
RUN npm install
# Start the app
ENTRYPOINT ["npm", "run"]
CMD ["start"]