We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61dfc91 commit df34b13Copy full SHA for df34b13
2 files changed
Dockerfile.dev
@@ -12,9 +12,6 @@ COPY ./internal ./internal
12
COPY ./main.go ./
13
COPY ./air.toml ./
14
15
-RUN mkdir -p ./internal/assets/dist && \
16
- echo "app running" > ./internal/assets/dist/index.html
17
-
18
RUN go install github.com/air-verse/air@v1.61.7
19
20
EXPOSE 3000
air.toml
@@ -2,6 +2,7 @@ root = "/tinyauth"
2
tmp_dir = "tmp"
3
4
[build]
5
+pre_cmd = ["mkdir -p internal/assets/dist", "echo 'backend running' > internal/assets/dist/index.html"]
6
cmd = "go build -o ./tmp/tinyauth ."
7
bin = "tmp/tinyauth"
8
include_ext = ["go"]
0 commit comments