diff --git a/README.md b/README.md index 9b722be..36055bf 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ A Docker image is available to transform a specified directory into a CRUD API. To run the Docker image: ```bash -docker run -p 8080:8080 -v /path/to/your/data:/app/data marka-crud-api +docker run -p 8080:8080 -v /path/to/your/data:/app/data max/marka-server ``` *(Replace `/path/to/your/data` with the absolute path to the directory you want to expose.)* diff --git a/server/Dockerfile b/server/Dockerfile index 440b382..fd96eee 100644 --- a/server/Dockerfile +++ b/server/Dockerfile @@ -8,9 +8,9 @@ RUN --mount=type=cache,target=/go/pkg/mod \ -o /out/server ./server/cmd/marka-server FROM scratch -WORKDIR /srv -COPY --from=build /out/server /server +WORKDIR /app +COPY --from=build /out/server /app/server USER 65532:65532 EXPOSE 8080 -CMD ["/server","-root=/srv","-addr=:8080"] +CMD ["/server","-root=/app/data","-addr=:8080"]