Skip to content

Commit

Permalink
code commit for docker and docker-compose file add
Browse files Browse the repository at this point in the history
  • Loading branch information
dassudip2001 committed Oct 9, 2023
1 parent 472a51d commit cd52c13
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM golang:1.19.0

WORKDIR /usr/src/app

RUN go install github.com/cosmtrek/air@latest

COPY . .
RUN go mod tidy
8 changes: 8 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: "3.8"

services:
web:
build: .
volumes:
- .:/usr/src/app
command: go run ./main.go

0 comments on commit cd52c13

Please sign in to comment.