Compare commits
2 Commits
3b5f1e9cf7
...
98faade91f
Author | SHA1 | Date |
---|---|---|
Jef Roosens | 98faade91f | |
Jef Roosens | 4a32349c9c |
2
Makefile
2
Makefile
|
@ -3,7 +3,7 @@ all: debug
|
||||||
|
|
||||||
# Builds
|
# Builds
|
||||||
debug:
|
debug:
|
||||||
@ ./build -m dev
|
@ ./build -m dev -a run build
|
||||||
.PHONY: debug
|
.PHONY: debug
|
||||||
|
|
||||||
release:
|
release:
|
||||||
|
|
|
@ -1,7 +1,9 @@
|
||||||
# We use a multi-stage build to end up with a very small final image
|
# Our entire toolchain runs in alpine
|
||||||
FROM alpine:latest AS builder
|
FROM alpine:latest AS builder
|
||||||
|
|
||||||
ENV PATH "$PATH:/root/.cargo/bin"
|
ENV PATH "$PATH:/root/.cargo/bin"
|
||||||
|
# Needed for proper compiling of openssl-dev
|
||||||
|
ENV RUSTFLAGS "-C target-feature=-crt-static"
|
||||||
|
|
||||||
WORKDIR /usr/src/app
|
WORKDIR /usr/src/app
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,5 @@
|
||||||
FROM chewingbever/fej-builder:latest AS builder
|
FROM chewingbever/fej-builder:latest AS builder
|
||||||
|
|
||||||
# Needed for proper compiling of openssl-dev
|
|
||||||
ENV RUSTFLAGS="-C target-feature=-crt-static"
|
|
||||||
|
|
||||||
# And then finally, build the project
|
# And then finally, build the project
|
||||||
# Thank the lords that this article exists
|
# Thank the lords that this article exists
|
||||||
# https://users.rust-lang.org/t/sigsegv-with-program-linked-against-openssl-in-an-alpine-container/52172
|
# https://users.rust-lang.org/t/sigsegv-with-program-linked-against-openssl-in-an-alpine-container/52172
|
||||||
|
|
Loading…
Reference in New Issue