Files
bitmappery/dockerfile
Igor Zinken b0994e9d81 Update dockerfile to use secure non-root user (#102)
* Update dockerfile to use secure non-root user
2026-06-17 21:23:11 +02:00

24 lines
455 B
Plaintext

# Written by Ange Cesari
# Use official Node.js based on Alpine
FROM node:24-alpine
# Create dir for application
WORKDIR /usr/src/app
# Copy package.json
COPY --chown=node:node package.json ./
# Install dependencies
RUN yarn install --ignore-scripts
# Copy the rest of the application code
COPY --chown=node:node . .
USER node
# Expose the port the application will run on
EXPOSE 5173
# Run the application
CMD ["yarn", "dev", "--host", "0.0.0.0"]