Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix docker image SEGFAULT #105

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
FROM alpine:3.16 AS build

RUN apk add --no-cache msgpack-c ncurses-libs libevent libexecinfo openssl zlib
FROM alpine:3.17.8 AS build

RUN apk add --no-cache \
autoconf \
Expand All @@ -9,35 +7,37 @@ RUN apk add --no-cache \
g++ \
gcc \
git \
libevent \
libevent-dev \
libexecinfo-dev \
libssh-dev \
linux-headers \
make \
msgpack-c \
msgpack-c-dev \
ncurses-dev \
ncurses-libs \
openssl \
openssl-dev \
zlib \
zlib-dev

RUN apk add --no-cache libssh-dev

RUN mkdir -p /src/tmate-ssh-server
WORKDIR /src/tmate-ssh-server
COPY . /src/tmate-ssh-server

RUN set -ex; \
cd /src/tmate-ssh-server; \
./autogen.sh; \
./configure --prefix=/usr CFLAGS="-D_GNU_SOURCE"; \
make -j "$(nproc)"; \
make install

### Minimal run-time image
FROM alpine:3.16
FROM alpine:3.17.8

RUN apk add --no-cache \
bash \
gdb \
libevent \
libexecinfo \
libssh \
msgpack-c \
ncurses-libs \
Expand Down