Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
containers
tdlib
Commits
239db8cc
Verified
Commit
239db8cc
authored
Oct 08, 2019
by
Vladimir Hodakov
🔥
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move to Ubuntu base image due to musl-related build errors
parent
b6fa855d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
Dockerfile
Dockerfile
+6
-4
No files found.
Dockerfile
View file @
239db8cc
FROM
alpine
as builder
FROM
ubuntu
as builder
ENV
TDLIB_VERSION=1.5.0
RUN
ap
k
update
&&
ap
k add gperf alpine-sdk openssl-dev git cmake
zlib-dev linux-headers
RUN
ap
t-get
update
&&
ap
t-get
-y
install
gperf cmake git
zlib
1g
-dev linux-headers
-generic g++ libssl-dev
WORKDIR
/tmp/_build_tdlib/
...
...
@@ -16,11 +16,13 @@ RUN cmake --build .
RUN
make
install
RUN
rm
-rf
/tmp/_build_tdlib/
FROM
alpine
FROM
ubuntu
LABEL
maintainer="vladimir@hodakov.me"
RUN
apk update
&&
apk add
--no-cache
gperf openssl-dev git cmake zlib-dev
RUN
apt-get update
&&
apt-get
-y
install
libssl-dev cmake zlib1g-dev g++
RUN
apt-get clean autoclean
&&
apt-get autoremove
--yes
&&
rm
-rf
/var/lib/apt/lists/
*
COPY
--from=builder /usr/local/include/td /usr/local/include/td
COPY
--from=builder /usr/local/lib/libtd* /usr/local/lib/
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment