mirror of
https://github.com/stackblitz/bolt.new
synced 2025-02-05 20:46:43 +00:00
18 lines
338 B
Docker
18 lines
338 B
Docker
FROM node:20.18.0
|
|
|
|
WORKDIR /app
|
|
|
|
RUN npm install -g pnpm
|
|
|
|
# Install dependencies (this step is cached as long as the dependencies don't change)
|
|
COPY package.json package-lock.json .
|
|
RUN pnpm install
|
|
|
|
# Copy the rest of your app's source code
|
|
COPY . .
|
|
|
|
# Expose the port the app runs on
|
|
EXPOSE 5173
|
|
|
|
CMD [ "pnpm", "run", "dev", "--host" ]
|