Skip to content

Commit

Permalink
Revert back to Debian to avoid segfault
Browse files Browse the repository at this point in the history
  • Loading branch information
redfast00 committed Aug 21, 2020
1 parent 6b3ea1e commit 12623ca
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
FROM rustlang/rust:nightly-alpine AS builder
FROM rustlang/rust:nightly-buster AS builder

WORKDIR /usr/src/zauth

RUN apk add --no-cache musl-dev mariadb-connector-c-dev postgresql-dev sqlite-dev

RUN cargo install diesel_cli
COPY . .
RUN cargo install --path .

FROM alpine
FROM debian:buster-slim

WORKDIR /usr/src/zauth

RUN apk add --no-cache netcat-openbsd libpq
RUN apt-get update && apt-get install -y netcat-openbsd sqlite3 libpq-dev libmariadbclient-dev
COPY --from=builder /usr/local/cargo/bin/diesel /usr/local/cargo/bin/zauth /usr/local/bin/
COPY Rocket.toml diesel.toml /usr/src/zauth/
COPY migrations/ migrations/
Expand Down

0 comments on commit 12623ca

Please sign in to comment.