mirror of
https://github.com/coaidev/coai.git
synced 2025-05-29 09:50:16 +09:00
fix: dockerfile
This commit is contained in:
parent
a159b5fbf3
commit
8c07b4daae
@ -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)
|
||||
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user