Spaces:
Build error
Build error
Create Dockerfile
Browse files- Dockerfile +23 -0
Dockerfile
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Use an official Node.js runtime as a parent image
|
2 |
+
FROM node:18-bullseye
|
3 |
+
|
4 |
+
# Set the working directory in the container
|
5 |
+
WORKDIR /usr/src/app
|
6 |
+
|
7 |
+
# Copy the package.json and yarn.lock files
|
8 |
+
COPY package.json yarn.lock ./
|
9 |
+
|
10 |
+
# Install dependencies
|
11 |
+
RUN yarn install
|
12 |
+
|
13 |
+
# Copy the rest of the application code
|
14 |
+
COPY . .
|
15 |
+
|
16 |
+
# Build the Docusaurus website
|
17 |
+
RUN yarn build
|
18 |
+
|
19 |
+
# Expose the port on which the app will run
|
20 |
+
EXPOSE 3000
|
21 |
+
|
22 |
+
# Command to run the Docusaurus development server
|
23 |
+
CMD ["yarn", "serve", "-p", "3000"]
|