Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
zx-luo opened this issue Nov 20, 2021 · 1 comment
Open

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

zx-luo opened this issue Nov 20, 2021 · 1 comment

Comments

@zx-luo
Copy link

zx-luo commented Nov 20, 2021

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 zx-luo changed the title Using fresh in docker container will not overload code Using fresh in docker container will not builds and (re)starts Nov 20, 2021
@shiyiya
Copy link

shiyiya commented Dec 2, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants