kingtest commited on
Commit
4cea212
1 Parent(s): f62ab8d

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -1
Dockerfile CHANGED
@@ -7,12 +7,13 @@ RUN apt-get update && \
7
  apt-get install -y git && \
8
  git clone https://github.com/LLM-Red-Team/glm-free-api.git /app && \
9
  apt-get remove -y git && \
10
- apt-get autoremove -y
11
 
12
  RUN yarn install --registry https://registry.npmmirror.com/ && yarn run build
13
 
14
  FROM node:lts-alpine
15
 
 
16
  COPY --from=BUILD_IMAGE /app/configs /app/configs
17
  COPY --from=BUILD_IMAGE /app/package.json /app/package.json
18
  COPY --from=BUILD_IMAGE /app/dist /app/dist
@@ -21,6 +22,8 @@ COPY --from=BUILD_IMAGE /app/node_modules /app/node_modules
21
 
22
  WORKDIR /app
23
 
 
 
24
  EXPOSE 8000
25
 
26
  CMD ["npm", "start"]
 
7
  apt-get install -y git && \
8
  git clone https://github.com/LLM-Red-Team/glm-free-api.git /app && \
9
  apt-get remove -y git && \
10
+ apt-get autoremove -y
11
 
12
  RUN yarn install --registry https://registry.npmmirror.com/ && yarn run build
13
 
14
  FROM node:lts-alpine
15
 
16
+
17
  COPY --from=BUILD_IMAGE /app/configs /app/configs
18
  COPY --from=BUILD_IMAGE /app/package.json /app/package.json
19
  COPY --from=BUILD_IMAGE /app/dist /app/dist
 
22
 
23
  WORKDIR /app
24
 
25
+ RUN chmod -R 777 /app
26
+
27
  EXPOSE 8000
28
 
29
  CMD ["npm", "start"]