feat: use dev container

This commit is contained in:
Jacky 2024-02-25 19:16:03 +08:00
parent 0d140b41da
commit b61534ebfe
2 changed files with 10 additions and 1 deletions

View file

@ -29,7 +29,7 @@ RUN wget https://go.dev/dl/${GO_TAR} && \
RUN go install github.com/cosmtrek/air@latest
COPY resources/development/entrypoint.sh /entrypoint.sh
COPY ../resources/development/entrypoint.sh /entrypoint.sh
RUN chmod a+x /entrypoint.sh \
&& rm -f /etc/nginx/conf.d/default.conf \

View file

@ -0,0 +1,9 @@
// Info https://containers.dev/implementors/json_reference/
{
// name of the dev container
"name": "nginx-ui-dev",
"build": {
// Path is relative to the devcontainer.json file.
"dockerfile": "Dockerfile"
}
}