mirror of
https://github.com/simplex-chat/simplexmq.git
synced 2026-08-29 01:18:40 +00:00
docker: revert buildplatform (#736)
* docker: revert buildplatform * docker: only build smp-server
This commit is contained in:
+5
-5
@@ -1,5 +1,5 @@
|
||||
FROM --platform=$BUILDPLATFORM ubuntu:23.04 AS final
|
||||
FROM --platform=$BUILDPLATFORM ubuntu:23.04 AS build
|
||||
FROM ubuntu:23.04 AS final
|
||||
FROM ubuntu:23.04 AS build
|
||||
|
||||
### Build stage
|
||||
|
||||
@@ -21,10 +21,10 @@ WORKDIR /project
|
||||
|
||||
# Compile smp-server
|
||||
RUN cabal update
|
||||
RUN cabal install
|
||||
RUN cabal build exe:smp-server --bindir=/root/
|
||||
|
||||
# Strip the binary from debug symbols to reduce size
|
||||
RUN strip /root/.cabal/bin/smp-server
|
||||
RUN strip /root/smp-server
|
||||
|
||||
### Final stage
|
||||
|
||||
@@ -34,7 +34,7 @@ FROM final
|
||||
RUN apt-get update && apt-get install -y openssl libnuma-dev
|
||||
|
||||
# Copy compiled smp-server from build stage
|
||||
COPY --from=build /root/.cabal/bin/smp-server /usr/bin/smp-server
|
||||
COPY --from=build /root/smp-server /usr/bin/smp-server
|
||||
|
||||
# Copy our helper script
|
||||
COPY ./scripts/docker/entrypoint /usr/bin/entrypoint
|
||||
|
||||
Reference in New Issue
Block a user