Frontend form handling done
This commit is contained in:
@@ -7,6 +7,9 @@ WORKDIR /app
|
||||
COPY go.mod go.sum ./
|
||||
RUN go mod download
|
||||
|
||||
# ---- Production mode ----
|
||||
FROM base AS prod
|
||||
|
||||
# Copy code, and compile
|
||||
COPY . .
|
||||
RUN go build -o server main.go
|
||||
@@ -17,3 +20,10 @@ EXPOSE 8080
|
||||
# Run server binary on start
|
||||
CMD ["./server"]
|
||||
|
||||
# ---- Development mode ----
|
||||
FROM base AS dev
|
||||
|
||||
# Install air for hot reloading
|
||||
RUN go install github.com/air-verse/air@latest
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user