mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-01-18 02:39:50 +00:00
Move from npm to yarn
This commit is contained in:
parent
02a3d8757a
commit
19bbb4e90a
15
Dockerfile
15
Dockerfile
@ -1,9 +1,6 @@
|
|||||||
# Dockerfile for GNS3 Web-ui development
|
# Dockerfile for GNS3 Web-ui development
|
||||||
FROM node:carbon
|
FROM node:carbon
|
||||||
|
|
||||||
RUN npm -g config set user root
|
|
||||||
RUN npm install -g @angular/cli
|
|
||||||
|
|
||||||
# Create user
|
# Create user
|
||||||
RUN useradd --user-group --create-home --shell /bin/false gns3-web-ui
|
RUN useradd --user-group --create-home --shell /bin/false gns3-web-ui
|
||||||
|
|
||||||
@ -11,14 +8,18 @@ RUN useradd --user-group --create-home --shell /bin/false gns3-web-ui
|
|||||||
ENV HOME /home/gns3-web-ui
|
ENV HOME /home/gns3-web-ui
|
||||||
WORKDIR $HOME
|
WORKDIR $HOME
|
||||||
|
|
||||||
|
# Copy source
|
||||||
|
COPY . .
|
||||||
|
RUN chown -R gns3-web-ui:gns3-web-ui $HOME
|
||||||
|
|
||||||
# Switch to gns3-web-ui user
|
# Switch to gns3-web-ui user
|
||||||
USER gns3-web-ui
|
USER gns3-web-ui
|
||||||
|
|
||||||
# Copy source
|
|
||||||
COPY . .
|
|
||||||
|
|
||||||
# Install dependencies
|
# Install dependencies
|
||||||
RUN npm install
|
RUN yarn global add @angular/cli
|
||||||
|
RUN yarn install --pure-lockfile
|
||||||
|
|
||||||
|
ENV PATH /home/gns3-web-ui/.yarn/bin:$PATH
|
||||||
|
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user