Skip to content

Commit

Permalink
fixed git
Browse files Browse the repository at this point in the history
  • Loading branch information
gnehs committed Nov 4, 2021
1 parent db457ea commit 4c53626
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
FROM node:14-alpine

WORKDIR /app
# 覆蓋拉取的程式碼避免干擾到 dev

RUN apk add git
RUN git clone https://github.com/gnehs/PokaPlayer .

COPY . /app

RUN apk update
RUN apk add --no-cache --virtual build-pkg build-base python2
RUN npm install --production --silent
RUN apk del build-pkg

RUN apk add git
RUN git init
RUN git add remote origin ${{ secrets.POKA_URL }}
# 環境設定
ENV NODE_ENV=production
EXPOSE 3000
Expand Down

0 comments on commit 4c53626

Please sign in to comment.