mirror of
https://github.com/zoriya/tide.git
synced 2026-06-12 06:40:36 +00:00
Add dockerfiles
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
FROM golang:1.20-alpine
|
||||
WORKDIR /app
|
||||
COPY go.mod ./
|
||||
# go.sum
|
||||
# RUN go mod download
|
||||
COPY . .
|
||||
RUN go build -o ./tide
|
||||
|
||||
EXPOSE 7890
|
||||
CMD ./tide
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
FROM golang:1.20-alpine
|
||||
RUN go install github.com/mitranim/gow@latest
|
||||
WORKDIR /app
|
||||
|
||||
EXPOSE 7890
|
||||
CMD gow -r=false run .
|
||||
@@ -0,0 +1,12 @@
|
||||
version: "3.8"
|
||||
|
||||
services:
|
||||
api:
|
||||
build:
|
||||
context: ./api
|
||||
dockerfile: Dockerfile.dev
|
||||
ports:
|
||||
- "7890:7890"
|
||||
restart: on-failure
|
||||
volumes:
|
||||
- ./api:/app
|
||||
@@ -0,0 +1,6 @@
|
||||
version: "3.8"
|
||||
|
||||
services:
|
||||
api:
|
||||
build: ./api
|
||||
restart: on-failure
|
||||
Reference in New Issue
Block a user