forked from codingshot/linktree-bos
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (22 loc) · 720 Bytes
/
Dockerfile
File metadata and controls
31 lines (22 loc) · 720 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Use an official Node runtime as a parent image
FROM node:18-alpine
# Install dependencies
RUN apk add --update git python3 make g++
RUN apk add --no-cache curl \
&& curl -sL https://unpkg.com/@pnpm/self-installer | node
# Set the working directory in the container to /app
WORKDIR /app
# Clone the repository
RUN git clone https://github.com/NearDeFi/polygon-bos-gateway.git .
# copy .env.example to .env
RUN cp .env.example .env
# Install any needed packages
RUN pnpm install
# Build the app
RUN pnpm run build
# Make port 3000 available to the world outside this container
EXPOSE 3000
# Define environment variable
ENV NODE_ENV production
# Run the app when the container launches
CMD ["pnpm", "start"]