add dockerfile for development

pull/38/head
Marcus Kok 1 year ago
parent 398181ba28
commit 581af70b18

@ -0,0 +1,10 @@
FROM golang:1.21.12
RUN apt-get update && \
apt-get install -y git neovim make
WORKDIR /app
COPY go.mod go.sum /
RUN go mod download
COPY . .
RUN make install
ENTRYPOINT sh

@ -45,4 +45,13 @@ make sandbox # creates the directory and copies over from ~/.config
make clean # removes directory make clean # removes directory
``` ```
### Docker
You can also run the docker container that will set up a barebones shell for you
to test dotctl with
```sh
docker built -d dotctl-dev .
docker run -it dotctl-dev
dotctl status
```

Loading…
Cancel
Save