2021-06-03 10:00:09 +00:00
|
|
|
FROM node:14.16
|
|
|
|
# Current Active LTS release according to (https://nodejs.org/en/about/releases/)
|
2016-01-20 21:45:51 +00:00
|
|
|
|
|
|
|
ENV WEBUI_DIR /src/webui
|
2020-09-07 08:22:03 +00:00
|
|
|
ARG ARG_PLATFORM_URL=https://pilot.traefik.io
|
|
|
|
ENV PLATFORM_URL=${ARG_PLATFORM_URL}
|
2016-01-20 21:45:51 +00:00
|
|
|
RUN mkdir -p $WEBUI_DIR
|
|
|
|
|
|
|
|
COPY package.json $WEBUI_DIR/
|
2019-08-26 16:15:41 +00:00
|
|
|
COPY package-lock.json $WEBUI_DIR/
|
2016-01-20 21:45:51 +00:00
|
|
|
|
|
|
|
WORKDIR $WEBUI_DIR
|
2019-08-26 16:15:41 +00:00
|
|
|
RUN npm install
|
2016-01-20 21:45:51 +00:00
|
|
|
|
|
|
|
COPY . $WEBUI_DIR/
|
|
|
|
|
2018-04-27 11:12:04 +00:00
|
|
|
EXPOSE 8080
|
2019-02-05 15:50:05 +00:00
|
|
|
|
2019-08-26 16:15:41 +00:00
|
|
|
RUN npm run lint
|