-
-
Notifications
You must be signed in to change notification settings - Fork 69
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
Documentation: Instructions for customising Gokapi with Docker #190
Comments
Hi, thanks for the feedback! I will improve the documentation in that regard, as it is a little bit outdated and does not go too much into detail on how to customise Docker based instances. You can follow the current documentation found here. As only the minimised versions are used, you have to run |
i'm tring to copy the file with scp in app/ or /templates in the root directory , but with portainer i think the files are stored somewhere else.. i can't figure how to do :| |
in portainer i added the two lines, templates and static services:
copied the folder from my computer in the same directory of data and config under /portainer/Files/AppData in the logs i see: Found folder 'templates', using local folder instead of internal template folder Found folder 'static', using local folder instead of internal static folder then i uploaded a new background and modified css to pick the new background but when i restart the container/server the background don't change |
@Raxiel1987 / @Forceu - I have personally added gokapi as a submodule, and then use a Dockerfile like this:
FROM golang:1.22.3-alpine AS build_base
RUN mkdir /compile
COPY ./gokapi/go.mod /compile
RUN cd /compile && go mod download
COPY ./gokapi/ /compile
COPY ./web/ /compile/internal/webserver/web/ # <--- Copy our web folder into the image before the go generate step
RUN cd /compile && go generate ./... && CGO_ENABLED=0 go build -ldflags="-s -w -X 'github.com/forceu/gokapi/internal/environment.IsDocker=true' -X 'github.com/forceu/gokapi/internal/environment.Builder=Project Docker File' -X 'github.com/forceu/gokapi/internal/environment.BuildTime=$(date)'" -o /compile/gokapi github.com/forceu/gokapi/cmd/gokapi
FROM alpine:3.19
RUN addgroup -S gokapi && adduser -S gokapi -G gokapi
RUN apk update && apk add --no-cache su-exec tini ca-certificates curl tzdata && mkdir /app && touch /app/.isdocker
COPY ./gokapi/dockerentry.sh /app/run.sh
COPY --from=build_base /compile/gokapi /app/gokapi
WORKDIR /app
ENTRYPOINT ["/sbin/tini", "--"]
CMD ["/app/run.sh"]
HEALTHCHECK --interval=10s --timeout=5s --retries=3 CMD curl --fail http://127.0.0.1:53842 || exit 1 |
hi.. i've tried to find where to customize the DOCKER version under portainer, but i can't find, can you guide me to the position of the configuration files/folder
thanks :D
The text was updated successfully, but these errors were encountered: