File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,6 +23,12 @@ FROM golang:1.25-alpine AS builder
2323# Install build dependencies including Node.js and npm
2424RUN apk add --no-cache git make bash sqlite openssl zip nodejs npm
2525
26+ # Install pnpm globally
27+ RUN npm install -g pnpm
28+
29+ # Set environment variables for CI build
30+ ENV CI=true
31+
2632# Set the working directory
2733WORKDIR /app
2834
@@ -53,12 +59,12 @@ RUN if [ -n "$CERT_FILE" ] && [ -n "$KEY_FILE" ] && [ -f "$CERT_FILE" ] && [ -f
5359 echo "✅ New certificates generated" ; \
5460 fi
5561
56- # Build the binary for the target architecture
62+ # Build both frontend and backend for the target architecture
5763ARG TARGETARCH
5864RUN if [ "$TARGETARCH" = "amd64" ]; then \
59- ./build.sh build_backend linux amd64; \
65+ ./build.sh build linux amd64; \
6066 else \
61- ./build.sh build_backend linux arm64; \
67+ ./build.sh build linux arm64; \
6268 fi
6369
6470# List the contents of the dist directory to verify zip output
@@ -104,11 +110,15 @@ RUN chown -R thunder:thunder /opt/thunder && \
104110# Expose the default port
105111EXPOSE 8090
106112
113+ # Expose the Gate port
114+ EXPOSE 9090
115+
107116# Switch to thunder user
108117USER thunder
109118
110119# Set environment variables
111120ENV BACKEND_PORT=8090
121+ ENV FRONTEND_PORT=9090
112122
113123# Start the application
114124CMD ["./start.sh" ]
You can’t perform that action at this time.
0 commit comments