adding in docker and such

This commit is contained in:
talksik
2023-10-01 14:25:51 -07:00
parent 2f9648ac1c
commit 42440feab2
4 changed files with 25 additions and 0 deletions
+10
View File
@@ -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"]
+3
View File
@@ -0,0 +1,3 @@
run:
go run cmd/main.go
View File
+12
View File
@@ -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