StarrySkyWorld commited on
Commit
be6e74b
·
verified ·
1 Parent(s): db12ab2

Create Dockefile

Browse files
Files changed (1) hide show
  1. Dockefile +18 -0
Dockefile ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM node:18-bullseye
2
+
3
+ WORKDIR /app
4
+
5
+ RUN apt-get update \
6
+ && apt-get install -y --no-install-recommends git \
7
+ && rm -rf /var/lib/apt/lists/*
8
+
9
+ ARG REPO_URL="https://github.com/Yingyya/itdog-api"
10
+ RUN git clone --depth 1 "$REPO_URL" /app
11
+
12
+ RUN yarn install --frozen-lockfile \
13
+ && yarn build
14
+
15
+ ENV HTTP_PORT=7860
16
+ EXPOSE 7860
17
+
18
+ CMD ["node", "dist/main.js"]