mirror of
https://github.com/QuivrHQ/quivr.git
synced 2024-12-15 09:32:22 +03:00
24 lines
506 B
Docker
24 lines
506 B
Docker
FROM node:18-alpine
|
|
|
|
# Create the directory on the node image
|
|
# where our Next.js app will live
|
|
RUN mkdir -p /app
|
|
|
|
# Set /app as the working directory
|
|
WORKDIR /app
|
|
|
|
# Copy package.json and package-lock.json
|
|
# to the /app working directory
|
|
COPY package*.json /app/
|
|
|
|
# Install dependencies in /app
|
|
RUN yarn install
|
|
|
|
# Copy the rest of our Next.js folder into /app
|
|
COPY . /app/
|
|
|
|
# Ensure port 3000 is accessible to our system
|
|
EXPOSE 3000
|
|
|
|
# Run yarn dev, as we would via the command line
|
|
CMD ["yarn", "dev"] |