Skip to content

Commit c8e25aa

Browse files
committed
Fix spacing and env assignments in Dockerfile
1 parent 2cbf09b commit c8e25aa

File tree

1 file changed

+28
-28
lines changed

1 file changed

+28
-28
lines changed

Dockerfile

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -20,51 +20,51 @@ RUN cd "$APP_DIR" && \
2020

2121
FROM alpine:3.20 AS torproject
2222

23-
ENV TOR_GIT_URL https://git.torproject.org/tor.git
24-
ENV TOR_VERSION tor-0.4.8.16
23+
ENV TOR_GIT_URL=https://git.torproject.org/tor.git
24+
ENV TOR_VERSION=tor-0.4.8.16
2525

26-
RUN apk --update --no-cache add ca-certificates
27-
RUN apk --no-cache add alpine-sdk automake autoconf git
28-
RUN apk --no-cache add openssl-dev libevent-dev zlib-dev
26+
RUN apk --update --no-cache add ca-certificates
27+
RUN apk --no-cache add alpine-sdk automake autoconf git
28+
RUN apk --no-cache add openssl-dev libevent-dev zlib-dev
2929

30-
RUN git clone $TOR_GIT_URL /tor -b $TOR_VERSION --depth 1
30+
RUN git clone $TOR_GIT_URL /tor -b $TOR_VERSION --depth 1
3131

3232
WORKDIR /tor
3333

34-
RUN ./autogen.sh
34+
RUN ./autogen.sh
3535

36-
RUN ./configure \
37-
--disable-system-torrc \
38-
--disable-asciidoc \
39-
--disable-unittests \
40-
--prefix=/stage
36+
RUN ./configure \
37+
--disable-system-torrc \
38+
--disable-asciidoc \
39+
--disable-unittests \
40+
--prefix=/stage
4141

42-
RUN make -j 4 && make install
42+
RUN make -j 4 && make install
4343

44-
RUN cp /stage/etc/tor/torrc.sample /stage/.torrc
44+
RUN cp /stage/etc/tor/torrc.sample /stage/.torrc
4545

4646
##### Soroban Go build stage
4747

4848
FROM golang:1.22.8-alpine3.20 AS soroban-build
4949

50-
ENV SOROBAN_VERSION 0.4.1
51-
ENV SOROBAN_URL https://github.com/Dojo-Open-Source-Project/soroban/archive/refs/tags/v$SOROBAN_VERSION.tar.gz
50+
ENV SOROBAN_VERSION=0.4.1
51+
ENV SOROBAN_URL=https://github.com/Dojo-Open-Source-Project/soroban/archive/refs/tags/v$SOROBAN_VERSION.tar.gz
5252

53-
RUN apk --no-cache --update add ca-certificates
54-
RUN apk --no-cache --update add alpine-sdk linux-headers wget
53+
RUN apk --no-cache --update add ca-certificates
54+
RUN apk --no-cache --update add alpine-sdk linux-headers wget
5555

56-
RUN set -ex && \
57-
mkdir -p /stage && \
58-
mkdir -p /src && \
59-
cd ~ && \
60-
wget -qO soroban.tar.gz "$SOROBAN_URL" && \
61-
tar -xzvf soroban.tar.gz -C /src --strip-components 1 && \
62-
rm soroban.tar.gz && \
63-
cd /src
56+
RUN set -ex && \
57+
mkdir -p /stage && \
58+
mkdir -p /src && \
59+
cd ~ && \
60+
wget -qO soroban.tar.gz "$SOROBAN_URL" && \
61+
tar -xzvf soroban.tar.gz -C /src --strip-components 1 && \
62+
rm soroban.tar.gz && \
63+
cd /src
6464

6565
WORKDIR /src
66-
RUN go mod download
67-
RUN go build -a -tags netgo -o /stage/soroban-server ./cmd/server
66+
RUN go mod download
67+
RUN go build -a -tags netgo -o /stage/soroban-server ./cmd/server
6868

6969
##### Final stage
7070

0 commit comments

Comments
 (0)