Fix teslamate: use RUN chmod instead of COPY --chmod (no BuildKit)
All checks were successful
Build Container / build (push) Successful in 43s
All checks were successful
Build Container / build (push) Successful in 43s
This commit is contained in:
parent
7a2daeb179
commit
653a2dc4f2
2 changed files with 7 additions and 4 deletions
|
|
@ -15,7 +15,7 @@ spec:
|
|||
spec:
|
||||
containers:
|
||||
- name: teslamate
|
||||
image: registry.ops.eblu.me/blumeops/teslamate:v1.0.0
|
||||
image: registry.ops.eblu.me/blumeops/teslamate:v1.0.1
|
||||
ports:
|
||||
- containerPort: 4000
|
||||
env:
|
||||
|
|
|
|||
|
|
@ -64,10 +64,13 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|||
&& useradd --uid 10000 --system --gid nonroot --home-dir /home/nonroot --shell /sbin/nologin nonroot \
|
||||
&& chown -R nonroot:nonroot .
|
||||
|
||||
COPY entrypoint.sh /
|
||||
COPY --from=builder /opt/built .
|
||||
RUN chmod 555 /entrypoint.sh && \
|
||||
chown -R nonroot:nonroot . && \
|
||||
mkdir $SRTM_CACHE
|
||||
|
||||
USER nonroot:nonroot
|
||||
COPY --chmod=555 entrypoint.sh /
|
||||
COPY --from=builder --chown=nonroot:nonroot --chmod=555 /opt/built .
|
||||
RUN mkdir $SRTM_CACHE
|
||||
|
||||
EXPOSE 4000
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue