Skip to content

Commit

Permalink
fix: dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
zmh-program committed Jan 25, 2024
1 parent a159b5f commit 8c07b4d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 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 /
WORKDIR /backend
COPY . .

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

WORKDIR /

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

# Expose port
Expand Down

0 comments on commit 8c07b4d

Please sign in to comment.