mirror of
https://github.com/SamyRai/tercul-frontend.git
synced 2025-12-27 02:31:34 +00:00
22 lines
477 B
Docker
22 lines
477 B
Docker
# 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"]
|