Skip to content

Commit 4792254

Browse files
committed
fix: incorrect ory CLI installation
1 parent 0110a05 commit 4792254

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

Dockerfile

+7-3
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,13 @@ RUN gem install bundler -v 2.3.26 && \
122122
apt-get update && \
123123
apt-get install -y --no-install-recommends ruby-dev
124124

125-
ADD go.mod go.mod
126-
ADD go.sum go.sum
127-
RUN go build -o /usr/local/bin/ory github.com/ory/cli
125+
ARG ORY_CLI_VERSION=1.1.0
126+
127+
RUN wget https://github.com/ory/cli/releases/download/v${ORY_CLI_VERSION}/ory_${ORY_CLI_VERSION}-linux_64bit.tar.gz \
128+
&& tar xf ory_${ORY_CLI_VERSION}-linux_64bit.tar.gz \
129+
&& mv ory /usr/local/bin/ory \
130+
&& chmod +x /usr/local/bin/ory \
131+
&& rm ory_${ORY_CLI_VERSION}-linux_64bit.tar.gz
128132

129133
RUN swagger version
130134
RUN ory version

Makefile

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1-
21
# Formats the code
3-
.PHONY: format
2+
.PHONY: format docker
3+
44
format: node_modules
55
npm exec -- prettier --write 'contrib/**/*{.ts,.js}'
66

77
node_modules: package-lock.json
88
npm ci
99
touch node_modules
10+
11+
docker:
12+
docker build -t ory/sdk:latest .

0 commit comments

Comments
 (0)