From d06502ea9b1d4def9a08bebff1e8a3e149d72cad Mon Sep 17 00:00:00 2001 From: Karl Cardenas <29551334+karl-cardenas-coding@users.noreply.github.com> Date: Wed, 17 Jul 2024 10:23:04 -0700 Subject: [PATCH] fix: address tutorial issue (#41) * fix: address tutorial issue * fix: updated more permissions * chore: fix whitespace --- Dockerfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3005e8d..ce61c5b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,12 +3,12 @@ ARG PALETTE_VERSION -FROM gcr.io/spectro-images-public/release/spectro-registry:${PALETTE_VERSION} as server +FROM gcr.io/spectro-images-public/release/spectro-registry:${PALETTE_VERSION} AS server FROM alpine:latest LABEL org.opencontainers.image.source="https://github.com/spectrocloud/tutorials" -LABEL org.opencontainers.image.description "An image containing all the Spectro Cloud tutorials and required tools." +LABEL org.opencontainers.image.description="An image containing all the Spectro Cloud tutorials and required tools." ADD terraform/ /terraform ADD packs/ /packs @@ -71,7 +71,9 @@ RUN wget https://spectro-cli.s3.amazonaws.com/v$PALETTE_REGISTRY_CLI_VERSION/li ADD https://releases.hashicorp.com/packer/${PACKER_VERSION}/packer_${PACKER_VERSION}_linux_amd64.zip /usr/local/sbin/ RUN unzip /usr/local/sbin/packer_${PACKER_VERSION}_linux_amd64.zip -d /usr/local/sbin && \ - rm -rf /usr/local/sbin/packer_${PACKER_VERSION}_linux_amd64.zip + rm -rf /usr/local/sbin/packer_${PACKER_VERSION}_linux_amd64.zip && \ + mkdir -p /home/appuser/.config/packer && mkdir /root/.spectro && \ + chown -R appuser:appuser /home/appuser/.config/packer terraform/ packs/ edge/ CanvOS/ /var/log/ /root/.spectro/ /etc/spectro/ EXPOSE 5000 USER appuser