Skip to content

Commit

Permalink
add: Dockerfile for senate api
Browse files Browse the repository at this point in the history
  • Loading branch information
Asone committed Sep 15, 2018
1 parent 1fe95c7 commit 9383122
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions _provisioning/senat-api/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
FROM rustlang/rust:nightly

LABEL AUTHOR="Nelson Herbin <[email protected]>"
LABEL NAME=tricoteuses-senat-api
LABEL VERSION=1

RUN apt-get update && \
apt-get install -y unzip graphicsmagick

ENV JQ_VERSION='1.5'

RUN wget --no-check-certificate https://raw.githubusercontent.com/stedolan/jq/master/sig/jq-release.key -O /tmp/jq-release.key && \
wget --no-check-certificate https://raw.githubusercontent.com/stedolan/jq/master/sig/v${JQ_VERSION}/jq-linux64.asc -O /tmp/jq-linux64.asc && \
wget --no-check-certificate https://github.com/stedolan/jq/releases/download/jq-${JQ_VERSION}/jq-linux64 -O /tmp/jq-linux64 && \
gpg --import /tmp/jq-release.key && \
gpg --verify /tmp/jq-linux64.asc /tmp/jq-linux64 && \
cp /tmp/jq-linux64 /usr/bin/jq && \
chmod +x /usr/bin/jq && \
rm -f /tmp/jq-release.key && \
rm -f /tmp/jq-linux64.asc && \
rm -f /tmp/jq-linux64

RUN cargo install diesel_cli --no-default-features --features postgres

RUN git clone https://framagit.org/tricoteuses/tricoteuses-api-senat.git

WORKDIR tricoteuses-api-senat

EXPOSE 8000

0 comments on commit 9383122

Please sign in to comment.