-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathDockerfile_Alpine
33 lines (28 loc) · 965 Bytes
/
Dockerfile_Alpine
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
# Building workflow for Alpine Linux.
#
# 1. Use this docker file to build the executable.
# docker build -t texconv -f Dockerfile_Alpine ./
#
# 2. Run the built image.
# docker run texconv
#
# 3. Use "docker cp" to get the built executables.
# docker cp <CONTAINER ID>:/Texconv-Custom-DLL/texconv ./
# docker cp <CONTAINER ID>:/Texconv-Custom-DLL/texassemble ./
#
# 4. Also, you can get the built shared library.
# docker cp <CONTAINER ID>:/Texconv-Custom-DLL/libtexconv.so ./
# Base image
ARG alpine_version="3.16.3"
FROM alpine:${alpine_version}
# Install packages
RUN apk update &&\
apk add --no-cache musl-dev gcc make g++ file alpine-sdk cmake wget bash
# Clone repo
RUN git clone --recursive --depth=1 https://github.com/matyalatte/Texconv-Custom-DLL.git;\
bash Texconv-Custom-DLL/shell_scripts/get_sal.sh
# Build shared lib
WORKDIR /Texconv-Custom-DLL/shell_scripts
RUN bash build.sh
# Build executable
RUN bash build_as_exe.sh