dockerFiles/yarn/Dockerfile

36 lines
689 B
Docker
Raw Normal View History

2022-08-07 09:32:37 +00:00
FROM ubuntu:xenial
MAINTAINER lingzhaohui@zeekling.cn
RUN sed -i s@/archive.ubuntu.com/@/mirrors.aliyun.com/@g /etc/apt/sources.list && sed -i s@/security.ubuntu.com/@/mirrors.aliyun.com/@g /etc/apt/sources.list
RUN mkdir -p /usr/src/app
2022-08-14 08:37:03 +00:00
# ADD . /usr/src/app
2022-08-07 09:32:37 +00:00
WORKDIR /usr/src/app
2022-08-14 08:37:03 +00:00
RUN apt update
2022-08-07 09:32:37 +00:00
2022-08-14 08:37:03 +00:00
RUN apt install apt-transport-https ca-certificates -y
2022-08-07 09:32:37 +00:00
2022-08-14 08:37:03 +00:00
RUN apt-key adv --keyserver pgp.mit.edu --recv D101F7899D41F3C3
2022-08-07 09:32:37 +00:00
2022-08-14 08:37:03 +00:00
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" > /etc/apt/sources.list.d/yarn.list
2022-08-07 09:32:37 +00:00
2022-08-14 08:37:03 +00:00
RUN apt update
2022-08-07 09:32:37 +00:00
2022-08-14 08:37:03 +00:00
RUN apt install nodejs npm yarn -y
2022-08-07 09:32:37 +00:00
2022-08-14 08:37:03 +00:00
RUN node -v
RUN npm -v
RUN npm install -g webpack
RUN npm install yarn
2022-08-07 09:32:37 +00:00
EXPOSE 4000
CMD ["yarn","bestart"]