Skip to content

Commit

Permalink
fix docker image build error
Browse files Browse the repository at this point in the history
  • Loading branch information
eiriksgata committed Dec 29, 2023
1 parent be8d836 commit 74a6397
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/docker-image-uat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ jobs:
registry: ${{ secrets.TC_DOCKER_HUB_ADDRESS }} # 声明镜像源
username: ${{ secrets.TC_DOCKER_HUB_USERNAME }}
password: ${{ secrets.TC_DOCKER_HUB_PASSWORD }}


- name: client project build
run: yarn build

- name: Build docker image
run:
docker buildx build --file Dockerfile --tag control-platform-client-uat:latest .
Expand Down
14 changes: 3 additions & 11 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,11 @@ FROM node:20.4.0

LABEL Eiriksgata <[email protected]>

WORKDIR /app

VOLUME /tmp/control-pltform-client-vue-nuxt3/

COPY package.json /app/

ADD . /app/

RUN yarn build
ADD .output .output

# expose the host and port 3000 to the server
ENV HOST 0.0.0.0
# Expose Port
EXPOSE 15368
EXPOSE 3000

ENTRYPOINT ["node", "./.output/server/index.mjs"]
ENTRYPOINT ["node", ".output/server/index.mjs"]

0 comments on commit 74a6397

Please sign in to comment.