forked from importpw/import
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
36 lines (27 loc) · 633 Bytes
/
Dockerfile
File metadata and controls
36 lines (27 loc) · 633 Bytes
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
FROM alpine:3.7 as base
RUN apk add --no-cache curl bash dash loksh mksh tree zsh build-base nginx
# Compile `oksh` from source
RUN cd /tmp && \
curl -LfsS https://github.com/ibara/oksh/archive/main.tar.gz | tar xzvf - && \
cd oksh* && \
./configure && make && make install && \
cd .. && \
rm -rf oksh*
WORKDIR /usr/src
RUN mkdir -p test/logs /run/nginx
COPY . .
FROM base
RUN sh ./test/test.sh
FROM base
# Really `loksh`
RUN ksh ./test/test.sh
FROM base
RUN oksh ./test/test.sh
FROM base
RUN mksh ./test/test.sh
FROM base
RUN zsh ./test/test.sh
FROM base
RUN dash ./test/test.sh
FROM base
RUN bash ./test/test.sh