Skip to content

Commit

Permalink
fix: update dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
zmh-program committed Jan 25, 2024
1 parent 13830a1 commit a159b5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

FROM golang:1.20 AS backend

WORKDIR /backend
WORKDIR /
COPY . .

# Set go proxy to https://goproxy.cn (open for vps in China Mainland)
Expand Down Expand Up @@ -40,7 +40,7 @@ RUN echo "Asia/Shanghai" > /etc/timezone && \
ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

# Copy dist
COPY --from=backend /backend /
COPY --from=backend / /
COPY --from=frontend /app/dist /app/dist

# Expose port
Expand Down

0 comments on commit a159b5f

Please sign in to comment.