Skip to content

Commit

Permalink
create a share volume to gain access to fe build files
Browse files Browse the repository at this point in the history
  • Loading branch information
juancwu committed Nov 15, 2024
1 parent 2502578 commit ec8e8b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/scripts/deploy-preview.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ docker run -d \
--name $APP_NAME \
--env-file .env \
--network=host --add-host=host.docker.internal:host-gateway \
-v ~/dist:/root/static/dist \
$APP_NAME:latest

echo "Done: Preview Deployment"
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ FROM alpine:3.20
RUN apk --no-cache add ca-certificates
WORKDIR /root/
COPY --from=builder /app/app .
RUN mkdir -p static/dist
EXPOSE 6969
ENV APP_ENV="production"
CMD ["./app"]

0 comments on commit ec8e8b9

Please sign in to comment.