Skip to content

Commit

Permalink
rearrange a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
notnmeyer committed Feb 27, 2024
1 parent 0a6d8c6 commit 7da0ed5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
FROM alpine:latest

ARG OPTIC_CLI_VERSION=latest

ENV INSTALLATION_METHOD="docker"
RUN addgroup -S optic && \
adduser -S optic -G optic && \
apk --no-cache add git curl && \
echo "optic-docker" > /etc/machine-id
RUN set -e; sh -c "$(curl -s --location https://install.useoptic.com/install.sh)" -- $OPTIC_CLI_VERSION /usr/local/bin

USER optic
ENV INSTALLATION_METHOD="docker"
ENTRYPOINT ["/usr/local/bin/optic"]

0 comments on commit 7da0ed5

Please sign in to comment.