This repository was archived by the owner on Jun 19, 2026. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
66 lines (62 loc) · 1.87 KB
/
Copy pathDockerfile
File metadata and controls
66 lines (62 loc) · 1.87 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
FROM docker.io/tiredofit/alpine:3.21
LABEL maintainer="Dave Conroy (github.com/tiredofit)"
## Set Environment Variables
ENV MEMCACHED_VERSION=1.6.39 \
IMAGE_NAME="tiredofit/memcached" \
IMAGE_REPO_URL="https://github.com/tiredofit/docker-memcached/"
RUN source /assets/functions/00-container && \
set -x && \
addgroup -S -g 11211 memcached && \
adduser -S -D -H -u 11211 -G memcached -g "Memcached" memcached && \
apk add -t .memcached-build-deps \
autoconf \
automake \
build-base \
ca-certificates \
coreutils \
cyrus-sasl-dev \
gcc \
git \
libc-dev \
libevent-dev \
linux-headers \
make \
musl-dev \
openssl \
openssl-dev \
patch \
perl \
perl-io-socket-ssl \
perl-utils \
&& \
\
clone_git_repo https://github.com/memcached/memcached ${MEMCACHED_VERSION} && \
sed -i "/#include <sys\/cdefs.h>/d" ./queue.h && \
./autogen.sh && \
./configure \
--build="$(gnuArch)" \
--enable-extstore \
--enable-sasl \
--enable-sasl-pwdb \
--enable-tls \
&& \
\
make -j "$(nproc)" && \
make install && \
cd / && \
runDeps="$( \
scanelf --needed --nobanner --recursive /usr/local \
| awk '{ gsub(/,/, "\nso:", $2); print "so:" $2 }' \
| sort -u \
| xargs -r apk info --installed \
| sort -u \
)" && \
apk add -t .memcached-run-deps $runDeps && \
apk del .memcached-build-deps && \
rm -rf /var/cache/apk/* && \
rm -rf /usr/src/* && \
memcached -V
## Networking Setup
EXPOSE 11211
### Add Folders
COPY install/ /