fresh icon indicating copy to clipboard operation
fresh copied to clipboard

Using fresh in docker container will not builds and (re)starts

Open zx-luo opened this issue 3 years ago • 1 comments

Hello, this problem occurred when I used this tool in the Docker container

My steps

- docker pull golang:latest
- docker exec -itd --name go-lang-18080 -v "C:\work\gin>:/opt/gin" -p 18080:8080
- go get github.com/pilu/fresh
- fresh

image

There is no hot update code after changes are made in the host

             Thanks !

zx-luo avatar Nov 20 '21 14:11 zx-luo

It works.

FROM golang:alpine AS development
WORKDIR /app
ENV ENV=development
COPY . /app
RUN go get -v
RUN go get github.com/pilu/fresh
ENTRYPOINT ["fresh"]
EXPOSE 8080 3306

shiyiya avatar Dec 02 '21 03:12 shiyiya