mirror of
https://github.com/SamyRai/tercul-frontend.git
synced 2025-12-27 04:51:34 +00:00
fix: update Dockerfile for development environment setup
This commit is contained in:
parent
22861af262
commit
de1f800477
@ -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
21
Dockerfile.dev
Normal 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"]
|
||||||
Loading…
Reference in New Issue
Block a user