Add build script to dev container

This commit is contained in:
Jan Bader 2022-01-26 20:22:17 +00:00
parent db8553995c
commit 1aa6d8d58f
2 changed files with 12 additions and 1 deletions

View File

@ -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
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

7
docker/build.sh Executable file
View File

@ -0,0 +1,7 @@
#!/bin/sh
cd web
yarn dev &
cd ..
task -w