-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile.alpine
47 lines (43 loc) · 1.57 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
FROM registry.cn-shenzhen.aliyuncs.com/infrastlabs/lang-replacement:dict as bins
FROM registry.cn-shenzhen.aliyuncs.com/infrastlabs/lang-replacement:cache as cache
# ref: dvp-ci-mgr.ui-frontend
# FROM node:10.15.0-alpine AS builder
# ref: docs-devops_vuepress
FROM node:14.13.1-alpine AS builder
MAINTAINER sam <[email protected]>
RUN domain="mirrors.aliyun.com" \
&& echo "http://$domain/alpine/v3.8/main" > /etc/apk/repositories \
&& echo "http://$domain/alpine/v3.8/community" >> /etc/apk/repositories \
&& apk add git bash curl wget jq
# portainer: yarn install
# RUN apk add autoconf libtool libpng automake gcc
RUN \
# npm
npm -v; \
npm config set registry=https://registry.npm.taobao.org -g; \
npm config set sass_binary_site http://cdn.npm.taobao.org/dist/node-sass -g; \
# npm install -g yarn #installed
# grunt
npm install -g grunt-cli; \
grunt -h; \
# yarn
yarn -v; \
yarn config set registry https://registry.npm.taobao.org -g; \
yarn config set sass_binary_site http://cdn.npm.taobao.org/dist/node-sass -g
# TODO: node_mods from res_repo
# ADD ./node_modules /.cache/node_modules
COPY --from=cache /.cache/node_modules /.cache/node_modules
ADD ./entry.sh /entry.sh
ADD ./conf/webpack.production.js /conf/webpack.production.js
ADD ./conf/gruntfile.js /conf/gruntfile.js
COPY --from=bins /generate/lang-replacement /usr/local/bin/
WORKDIR /output
ENV \
REPO="https://gitee.com/g-devops/fk-portainer" \
# BRANCH="release/2.9" \
# TAG="2.9.1"
TAG="v291-patch"
# VOLUME ["/data"]
# EXPOSE 8080
ENTRYPOINT ["/entry.sh"]
RUN apk add libpng