Add Dockerfile and build-docker make target

This commit is contained in:
2025-02-03 13:17:49 +02:00
parent 3004bc9dd3
commit 91b71487bf
2 changed files with 18 additions and 0 deletions

15
Dockerfile Normal file
View File

@@ -0,0 +1,15 @@
FROM golang:1.23-bookworm
RUN apt-get update && apt-get upgrade -y
RUN useradd -u 1000 -m user
COPY ./gemserve /app/gemserve
WORKDIR /app
RUN chmod +x /app/gemserve && \
chown -R user:user /app
USER user
CMD ["/app/gemserve","0.0.0.0:1965"]