Skip to content

Commit

Permalink
fix Dockerfile to work properly
Browse files Browse the repository at this point in the history
  • Loading branch information
dbehnke committed Oct 14, 2023
1 parent 41a1fd0 commit 14772ee
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@ RUN make clean && make
FROM debian:bookworm-slim
ARG uid=1000
ARG gid=1000
#RUN apk add file
RUN adduser -u ${uid} -g ${gid} -h /app -D gouser
USER gouser
WORKDIR /app
ARG user=gouser
ARG userhome=/app
RUN groupadd -f -g ${gid} ${user}
RUN useradd -l -u ${uid} -g ${gid} -d "${userhome}" -r ${user}
USER ${user}
WORKDIR ${userhome}
COPY --from=builder /usr/src/app/gomrefdash .
COPY --from=builder /usr/src/app/frontend/spa/ frontend/spa/
EXPOSE 3000
ENTRYPOINT ./gomrefdash
ENTRYPOINT ./gomrefdash

0 comments on commit 14772ee

Please sign in to comment.