Skip to content

Commit bb3aff0

Browse files
committed
Build from pinned git ref
1 parent 6191468 commit bb3aff0

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

app/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
from rust:latest
22

3+
ARG GIT_COMMIT=1dc421474df2a4ee973d529534cd0eb7189d58ce
4+
35
# Create needed directories
46
RUN mkdir /app /config
57
WORKDIR /app
@@ -14,6 +16,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
1416

1517
# Clone syncstorage-rs and build it
1618
RUN git clone https://github.com/mozilla-services/syncstorage-rs ./ \
19+
&& git checkout ${GIT_COMMIT} \
1720
&& cargo install --path ./syncserver --no-default-features --features=syncstorage-db/mysql --locked \
1821
&& cargo install diesel_cli --no-default-features --features 'mysql' \
1922
&& cargo clean

0 commit comments

Comments
 (0)