diff --git a/docker/Dockerfile b/docker/Dockerfile index cffb5a7..50f1ecc 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -2,4 +2,8 @@ FROM alpine RUN apk add go RUN go install github.com/kyleconroy/sqlc/cmd/sqlc@latest RUN go install github.com/go-task/task/v3/cmd/task@latest -RUN apk add nodejs yarn bash \ No newline at end of file +RUN apk add nodejs yarn bash curl +RUN bash -c "$(curl --location https://taskfile.dev/install.sh)" -- -d -b /usr/local/bin +ADD build.sh / +WORKDIR /src +CMD /build.sh \ No newline at end of file diff --git a/docker/build.sh b/docker/build.sh new file mode 100755 index 0000000..20216d0 --- /dev/null +++ b/docker/build.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +cd web +yarn dev & + +cd .. +task -w \ No newline at end of file