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

Docker MacOS no rebuilding even with pulling on #88

Open
RenatoCesarF opened this issue Apr 25, 2023 · 2 comments
Open

Docker MacOS no rebuilding even with pulling on #88

RenatoCesarF opened this issue Apr 25, 2023 · 2 comments

Comments

@RenatoCesarF
Copy link

Hi, I'm trying to use CompileDaemon with Docker, but it is not recompiling when saving files, it works locally, but not in the docker container. I'm in MacOS and this is my docker file:


FROM golang:1.20.3

# Define o diretório de trabalho como /app
WORKDIR /app

# Copia o conteúdo do diretório atual para o /app do container
COPY . .

RUN apt-get install git

COPY go.mod .
COPY go.sum .

RUN go mod download

# Instala o CompileDaemon
RUN go install github.com/githubnemo/CompileDaemon@latest

# Compila o programa
RUN go build -o main .

# Substitui o comando CMD pelo comando do CompileDaemon -log-prefix=false
CMD CompileDaemon -build="go build -o main ." -command="./main" -polling=true

EXPOSE 8080
@brendansiow
Copy link

image

For some reason, I faced this and by not using gRPC FUSE, things work again, anyone able to provide insights on this?

@RenatoCesarF
Copy link
Author

image For some reason, I faced this and by not using gRPC FUSE, things work again, anyone able to provide insights on this?

Where is this configuration?

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