adding in docker and such
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
|||||||
|
FROM golang:1.21 AS builder
|
||||||
|
COPY / /app
|
||||||
|
|
||||||
|
WORKDIR /app/cmd
|
||||||
|
RUN CGO_ENABLED=0 GOOS=linux go build -o main
|
||||||
|
|
||||||
|
FROM alpine:latest AS production
|
||||||
|
COPY --from=builder /app/cmd .
|
||||||
|
CMD ["./main"]
|
||||||
|
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
version: '3'
|
||||||
|
services:
|
||||||
|
flowy-landing:
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
ports:
|
||||||
|
- 3000:3000
|
||||||
|
volumes:
|
||||||
|
- /etc/data/flowy-landing/users.db:./users.db
|
||||||
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user