Skip to content

Commit d06502e

Browse files
fix: address tutorial issue (#41)
* fix: address tutorial issue * fix: updated more permissions * chore: fix whitespace
1 parent e57e5fa commit d06502e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Dockerfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33

44
ARG PALETTE_VERSION
55

6-
FROM gcr.io/spectro-images-public/release/spectro-registry:${PALETTE_VERSION} as server
6+
FROM gcr.io/spectro-images-public/release/spectro-registry:${PALETTE_VERSION} AS server
77

88
FROM alpine:latest
99

1010
LABEL org.opencontainers.image.source="https://github.com/spectrocloud/tutorials"
11-
LABEL org.opencontainers.image.description "An image containing all the Spectro Cloud tutorials and required tools."
11+
LABEL org.opencontainers.image.description="An image containing all the Spectro Cloud tutorials and required tools."
1212

1313
ADD terraform/ /terraform
1414
ADD packs/ /packs
@@ -71,7 +71,9 @@ RUN wget https://spectro-cli.s3.amazonaws.com/v$PALETTE_REGISTRY_CLI_VERSION/li
7171

7272
ADD https://releases.hashicorp.com/packer/${PACKER_VERSION}/packer_${PACKER_VERSION}_linux_amd64.zip /usr/local/sbin/
7373
RUN unzip /usr/local/sbin/packer_${PACKER_VERSION}_linux_amd64.zip -d /usr/local/sbin && \
74-
rm -rf /usr/local/sbin/packer_${PACKER_VERSION}_linux_amd64.zip
74+
rm -rf /usr/local/sbin/packer_${PACKER_VERSION}_linux_amd64.zip && \
75+
mkdir -p /home/appuser/.config/packer && mkdir /root/.spectro && \
76+
chown -R appuser:appuser /home/appuser/.config/packer terraform/ packs/ edge/ CanvOS/ /var/log/ /root/.spectro/ /etc/spectro/
7577
EXPOSE 5000
7678

7779
USER appuser

0 commit comments

Comments
 (0)