This commit is contained in:
parent
cde5f98bd8
commit
bbbd56ea8b
@ -11,13 +11,16 @@ COPY package.json pnpm-lock.yaml ./
|
|||||||
RUN npm install -g pnpm
|
RUN npm install -g pnpm
|
||||||
|
|
||||||
# Install project dependencies
|
# Install project dependencies
|
||||||
RUN pnpm install
|
RUN pnpm install --frozen-lockfile
|
||||||
|
|
||||||
# Copy the rest of the application code
|
# Copy the rest of the application code
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
|
# Build the application for production
|
||||||
|
RUN pnpm run build
|
||||||
|
|
||||||
# Expose the port
|
# Expose the port
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
|
|
||||||
# Command to run the application
|
# Command to run the application in production
|
||||||
CMD ["pnpm", "run", "dev"]
|
CMD ["pnpm", "run", "start"]
|
||||||
|
Loading…
Reference in New Issue
Block a user