fix: Update Dockerfile to simplify user group setup
This commit is contained in:
parent
a4c6607194
commit
b0fe17cea2
@ -17,8 +17,8 @@ WORKDIR /
|
|||||||
# Copy the built binary from the builder stage
|
# Copy the built binary from the builder stage
|
||||||
COPY --from=builder /app/gosearch .
|
COPY --from=builder /app/gosearch .
|
||||||
# Add executing User
|
# Add executing User
|
||||||
RUN addgroup gosearch
|
RUN addgroup gosearch \
|
||||||
RUN useradd -g gosearch gosearch
|
&& useradd -g gosearch gosearch
|
||||||
USER gosearch
|
USER gosearch
|
||||||
# Expose the application port
|
# Expose the application port
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
|
Loading…
x
Reference in New Issue
Block a user