2018-11-10 09:01:51 +08:00
|
|
|
FROM registry.makerforce.io/ambrose/env
|
2018-04-02 20:13:09 +08:00
|
|
|
|
2018-04-02 20:28:39 +08:00
|
|
|
USER root
|
|
|
|
|
2018-04-02 20:47:51 +08:00
|
|
|
RUN apk add --no-cache \
|
|
|
|
build-base \
|
|
|
|
python2
|
2018-04-02 20:13:09 +08:00
|
|
|
|
|
|
|
COPY . /usr/local/fm
|
|
|
|
|
|
|
|
RUN cd /usr/local/fm \
|
2018-11-10 09:50:21 +08:00
|
|
|
&& /home/ambrose/.local/bin/yarn install \
|
|
|
|
&& /home/ambrose/.local/bin/yarn cache clean
|
2018-04-02 22:43:29 +08:00
|
|
|
|
2018-04-02 20:28:39 +08:00
|
|
|
USER ambrose
|
2018-04-02 20:13:09 +08:00
|
|
|
|
2018-04-02 22:43:29 +08:00
|
|
|
ENV SHELL="zsh -l"
|
|
|
|
|
2018-04-02 20:13:09 +08:00
|
|
|
CMD ["node", "/usr/local/fm/index.js"]
|