fix: update Dockerfile for development environment setup
Some checks failed
Lint / TypeScript Type Check (push) Failing after 5s
Build / Build Application (push) Failing after 6s
Docker Build / Build Docker Image (push) Failing after 11s

This commit is contained in:
Damir Mukimov 2025-12-27 00:34:04 +01:00
parent 22861af262
commit de1f800477
No known key found for this signature in database
GPG Key ID: 42996CC7C73BC750
2 changed files with 22 additions and 0 deletions

View File

@ -9,6 +9,7 @@ WORKDIR /app
# Copy Yarn configuration and package files # Copy Yarn configuration and package files
COPY .yarnrc.yml package.json yarn.lock ./ COPY .yarnrc.yml package.json yarn.lock ./
COPY .yarn ./.yarn
# Install dependencies (uses PnP by default from .yarnrc.yml) # Install dependencies (uses PnP by default from .yarnrc.yml)
RUN yarn install --immutable RUN yarn install --immutable

21
Dockerfile.dev Normal file
View File

@ -0,0 +1,21 @@
# Development Dockerfile for frontend
FROM node:iron-alpine3.22
# Enable Corepack for Yarn 4.x
RUN corepack enable
# Set working directory
WORKDIR /app
# Copy all source code first
COPY . .
# Remove any host PnP artifacts and install fresh in container
RUN rm -rf .pnp.* .yarn/cache .yarn/unplugged .yarn/install-state.gz node_modules && \
yarn install --immutable
# Expose the application port
EXPOSE 3000
# Command to run the development server
CMD ["yarn", "dev"]