feat: some update

This commit is contained in:
Max Richter
2025-09-26 17:26:22 +02:00
parent d302c9b098
commit ea978b48f6
2 changed files with 4 additions and 4 deletions

View File

@@ -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.)*

View File

@@ -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"]