mirror of
https://github.com/QuivrHQ/quivr.git
synced 2024-12-21 05:11:35 +03:00
a3ca7ecb37
* feat(docker): added docker for prod * feat(refacto): moved to modules
29 lines
706 B
Docker
29 lines
706 B
Docker
FROM node:18-alpine
|
|
# Install Python and essential build tools
|
|
RUN apk add --update --no-cache python3 make g++ && ln -sf python3 /usr/bin/python
|
|
RUN python3 -m ensurepip
|
|
RUN pip3 install --no-cache --upgrade pip setuptools
|
|
|
|
# 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 yarn.lock
|
|
# to the /app working directory
|
|
COPY package*.json yarn.lock ./
|
|
|
|
# Install dependencies in /app
|
|
RUN yarn install
|
|
|
|
# Copy the rest of our Next.js folder into /app
|
|
COPY . .
|
|
|
|
# Ensure port 3000 is accessible to our system
|
|
EXPOSE 3000
|
|
|
|
# Run yarn dev, as we would via the command line
|
|
CMD ["yarn", "dev"]
|