antosaio/Dockerfile

26 lines
1.1 KiB
Docker
Raw Normal View History

2021-03-24 20:27:43 +01:00
FROM alpine:3.9 AS build-env
RUN apk add build-base make sqlite-dev zlib-dev readline-dev nodejs npm openssl-dev
2020-06-26 15:51:13 +02:00
COPY download /download
2021-03-24 20:27:43 +01:00
RUN cd /download/antd-1.0.6b && ./configure --prefix=/usr/ && make && make install
RUN cd /download/lua-0.5.2b && ./configure --prefix=/opt/www && make && make install
RUN cd /download/wterm-1.0.0b && ./configure --prefix=/opt/www && make && make install
2020-08-09 13:37:17 +02:00
2021-03-24 20:27:43 +01:00
RUN cd /download/tunnel-0.1.0b && ./configure --prefix=/opt/www && make && make install
RUN cd /download/antd-publishers-0.1.0a && ./configure --prefix=/opt/www && make && make install
2020-08-09 13:37:17 +02:00
2020-06-26 15:51:13 +02:00
RUN mkdir -p /opt/www/htdocs
RUN cd /download/antd-web-apps && BUILDDIR=/opt/www/htdocs PROJS=os make
RUN rm /opt/www/htdocs/index.ls
RUN cd /download/antos && npm install terser uglifycss typescript -g && npm install @types/jquery && BUILDDIR=/opt/www/htdocs/os make release
2021-03-24 20:27:43 +01:00
FROM alpine:3.9
RUN apk add --no-cache sqlite-dev zlib readline openssl curl
2020-06-26 15:51:13 +02:00
2021-03-24 20:27:43 +01:00
COPY start.sh /start.sh
2020-06-26 15:51:13 +02:00
COPY --from=build-env /usr/bin/antd /usr/bin/antd
COPY --from=build-env /usr/lib/libantd* /usr/lib/
COPY --from=build-env /opt/www /opt/www
2021-03-24 20:27:43 +01:00
ENTRYPOINT /start.sh
# ENTRYPOINT /bin/sh