Hot reloading gin gonic with docker

This commit is contained in:
Leons Aleksandrovs
2025-07-05 21:22:18 +03:00
parent a42e61fb48
commit 8916f3e394
4 changed files with 10 additions and 1 deletions
+5
View File
@@ -26,4 +26,9 @@ FROM base AS dev
# Install air for hot reloading
RUN go install github.com/air-verse/air@latest
# Copy code, and expose port
COPY . .
EXPOSE 8080
# Enable hot reloading for go
CMD [ "air" ]