mirror of
https://github.com/outbackdingo/openlan-cgw.git
synced 2026-01-27 10:19:56 +00:00
Added non-root user to CGW Image
This commit is contained in:
@@ -15,6 +15,10 @@ RUN apt-get update -q -y && apt-get install -q -y \
|
||||
CMD ["make", "-C", "/usr/src/openlan-cgw", "cgw-app"]
|
||||
|
||||
FROM rust:1.77.0 as cgw-img
|
||||
RUN adduser cgw_runner && addgroup cgw_users_group
|
||||
RUN usermod -a -G cgw_users_group cgw_runner
|
||||
RUN chown cgw_runner:cgw_users_group "/var"
|
||||
USER cgw_runner
|
||||
COPY --from=builder /lib/x86_64-linux-gnu/ /lib/x86_64-linux-gnu/
|
||||
COPY output/bin/ucentral-cgw /usr/local/bin/ucentral-cgw
|
||||
CMD ["ucentral-cgw"]
|
||||
|
||||
Reference in New Issue
Block a user