mirror of
https://github.com/igorski/bitmappery.git
synced 2026-07-20 13:58:48 +02:00
* Upgrade Node.js base image to version 24-alpine Current dockerfile fails to build. Updating Node.js base image from version 20 to 24 brings it to the current LTS and builds successfully for me. * removed unnecessary yarn install step
22 lines
391 B
Plaintext
22 lines
391 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 package.json ./
|
|
|
|
# Install dependencies
|
|
RUN yarn install
|
|
|
|
# Copy the rest of the application code
|
|
COPY . .
|
|
|
|
# Expose the port the application will run on
|
|
EXPOSE 5173
|
|
|
|
# Run the application
|
|
CMD ["yarn", "dev", "--host", "0.0.0.0"]
|