mirror of
https://github.com/Dvorinka/excalidraw-full.git
synced 2026-07-28 23:23:47 +00:00
Pack as docker for AWS Fargate
Spawning this a AWS Fargate services requires a docker image.
This commit is contained in:
@@ -0,0 +1,14 @@
|
|||||||
|
FROM golang:alpine as builder
|
||||||
|
RUN apk update && apk add --no-cache git
|
||||||
|
WORKDIR /app
|
||||||
|
COPY go.mod ./
|
||||||
|
RUN GOPROXY=direct go mod download
|
||||||
|
COPY . .
|
||||||
|
RUN GOPROXY=direct CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o main .
|
||||||
|
|
||||||
|
FROM alpine
|
||||||
|
WORKDIR /root/
|
||||||
|
COPY --from=builder /app/main .
|
||||||
|
# COPY --from=builder /app/.env .
|
||||||
|
EXPOSE 3002
|
||||||
|
CMD ["./main"]
|
||||||
+5
-5
@@ -9,7 +9,7 @@ index 0c715854..422add5c 100644
|
|||||||
+# VITE_APP_BACKEND_V2_POST_URL=https://json.excalidraw.com/api/v2/post/
|
+# VITE_APP_BACKEND_V2_POST_URL=https://json.excalidraw.com/api/v2/post/
|
||||||
+VITE_APP_BACKEND_V2_GET_URL=http://localhost:3002/api/v2/
|
+VITE_APP_BACKEND_V2_GET_URL=http://localhost:3002/api/v2/
|
||||||
+VITE_APP_BACKEND_V2_POST_URL=http://localhost:3002/api/v2/post/
|
+VITE_APP_BACKEND_V2_POST_URL=http://localhost:3002/api/v2/post/
|
||||||
|
|
||||||
VITE_APP_LIBRARY_URL=https://libraries.excalidraw.com
|
VITE_APP_LIBRARY_URL=https://libraries.excalidraw.com
|
||||||
-VITE_APP_LIBRARY_BACKEND=https://us-central1-excalidraw-room-persistence.cloudfunctions.net/libraries
|
-VITE_APP_LIBRARY_BACKEND=https://us-central1-excalidraw-room-persistence.cloudfunctions.net/libraries
|
||||||
+# VITE_APP_LIBRARY_BACKEND=https://us-central1-excalidraw-room-persistence.cloudfunctions.net/libraries
|
+# VITE_APP_LIBRARY_BACKEND=https://us-central1-excalidraw-room-persistence.cloudfunctions.net/libraries
|
||||||
@@ -18,23 +18,23 @@ index 0c715854..422add5c 100644
|
|||||||
+VITE_APP_PLUS_LP=http://localhost:3002/plus/
|
+VITE_APP_PLUS_LP=http://localhost:3002/plus/
|
||||||
+# VITE_APP_PLUS_APP=https://app.excalidraw.com
|
+# VITE_APP_PLUS_APP=https://app.excalidraw.com
|
||||||
+VITE_APP_PLUS_APP=http://localhost:3002/app/
|
+VITE_APP_PLUS_APP=http://localhost:3002/app/
|
||||||
|
|
||||||
-VITE_APP_PLUS_LP=https://plus.excalidraw.com
|
-VITE_APP_PLUS_LP=https://plus.excalidraw.com
|
||||||
-VITE_APP_PLUS_APP=https://app.excalidraw.com
|
-VITE_APP_PLUS_APP=https://app.excalidraw.com
|
||||||
-
|
-
|
||||||
-VITE_APP_AI_BACKEND=https://oss-ai.excalidraw.com
|
-VITE_APP_AI_BACKEND=https://oss-ai.excalidraw.com
|
||||||
+# VITE_APP_AI_BACKEND=https://oss-ai.excalidraw.com
|
+# VITE_APP_AI_BACKEND=https://oss-ai.excalidraw.com
|
||||||
+VITE_APP_AI_BACKEND=http://localhost:3002/ai/
|
+VITE_APP_AI_BACKEND=http://localhost:3002/ai/
|
||||||
|
|
||||||
# socket server URL used for collaboration
|
# socket server URL used for collaboration
|
||||||
-VITE_APP_WS_SERVER_URL=https://oss-collab.excalidraw.com
|
-VITE_APP_WS_SERVER_URL=https://oss-collab.excalidraw.com
|
||||||
+VITE_APP_WS_SERVER_URL=http://localhost:3002
|
+VITE_APP_WS_SERVER_URL=http://localhost:3002
|
||||||
+# VITE_APP_WS_SERVER_URL=https://oss-collab.excalidraw.com
|
+# VITE_APP_WS_SERVER_URL=https://oss-collab.excalidraw.com
|
||||||
|
|
||||||
-VITE_APP_FIREBASE_CONFIG='{"apiKey":"AIzaSyAd15pYlMci_xIp9ko6wkEsDzAAA0Dn0RU","authDomain":"excalidraw-room-persistence.firebaseapp.com","databaseURL":"https://excalidraw-room-persistence.firebaseio.com","projectId":"excalidraw-room-persistence","storageBucket":"excalidraw-room-persistence.appspot.com","messagingSenderId":"654800341332","appId":"1:654800341332:web:4a692de832b55bd57ce0c1"}'
|
-VITE_APP_FIREBASE_CONFIG='{"apiKey":"AIzaSyAd15pYlMci_xIp9ko6wkEsDzAAA0Dn0RU","authDomain":"excalidraw-room-persistence.firebaseapp.com","databaseURL":"https://excalidraw-room-persistence.firebaseio.com","projectId":"excalidraw-room-persistence","storageBucket":"excalidraw-room-persistence.appspot.com","messagingSenderId":"654800341332","appId":"1:654800341332:web:4a692de832b55bd57ce0c1"}'
|
||||||
+# VITE_APP_FIREBASE_CONFIG='{"apiKey":"AIzaSyAd15pYlMci_xIp9ko6wkEsDzAAA0Dn0RU","authDomain":"excalidraw-room-persistence.firebaseapp.com","databaseURL":"https://excalidraw-room-persistence.firebaseio.com","projectId":"excalidraw-room-persistence","storageBucket":"excalidraw-room-persistence.appspot.com","messagingSenderId":"654800341332","appId":"1:654800341332:web:4a692de832b55bd57ce0c1"}'
|
+# VITE_APP_FIREBASE_CONFIG='{"apiKey":"AIzaSyAd15pYlMci_xIp9ko6wkEsDzAAA0Dn0RU","authDomain":"excalidraw-room-persistence.firebaseapp.com","databaseURL":"https://excalidraw-room-persistence.firebaseio.com","projectId":"excalidraw-room-persistence","storageBucket":"excalidraw-room-persistence.appspot.com","messagingSenderId":"654800341332","appId":"1:654800341332:web:4a692de832b55bd57ce0c1"}'
|
||||||
+VITE_APP_FIREBASE_CONFIG='{"apiKey":"AIzaSyAd15pYlMci_xIp9ko6wkEsDzAAA0Dn0RU","authDomain":"","databaseURL":"","projectId":"excalidraw-room-persistence","storageBucket":"","messagingSenderId":"654800341332","appId":"1:654800341332:web:4a692de832b55bd57ce0c1"}'
|
+VITE_APP_FIREBASE_CONFIG='{"apiKey":"AIzaSyAd15pYlMci_xIp9ko6wkEsDzAAA0Dn0RU","authDomain":"","databaseURL":"","projectId":"excalidraw-room-persistence","storageBucket":"","messagingSenderId":"654800341332","appId":"1:654800341332:web:4a692de832b55bd57ce0c1"}'
|
||||||
|
|
||||||
-VITE_APP_DISABLE_TRACKING=
|
-VITE_APP_DISABLE_TRACKING=
|
||||||
+# VITE_APP_DISABLE_TRACKING=
|
+# VITE_APP_DISABLE_TRACKING=
|
||||||
+VITE_APP_DISABLE_TRACKING=yes
|
+VITE_APP_DISABLE_TRACKING=yes
|
||||||
|
|||||||
Reference in New Issue
Block a user