An authentication server
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
441 B

5 years ago
6 years ago
5 years ago
6 years ago
5 years ago
6 years ago
6 years ago
  1. FROM alpine:edge
  2. RUN apk add --no-cache crystal shards openssl openssl-dev musl-dev libc6-compat zlib-dev sqlite-dev
  3. RUN crystal -v >&2
  4. COPY . /opt/app/
  5. RUN cd /opt/app && \
  6. shards
  7. ENV KEMAL_ENV test
  8. RUN cd /opt/app/ && crystal spec
  9. ENV KEMAL_ENV production
  10. RUN cd /opt/app/ && crystal build --mcpu $(gcc -march=native -Q --help=target|grep march|awk '{print $2}'|head -n 1) --release src/authenticate.cr
  11. CMD /opt/app/authenticate