forked from geert-janklaps/docker-node-cfcli
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
35 lines (26 loc) · 1.19 KB
/
Dockerfile
File metadata and controls
35 lines (26 loc) · 1.19 KB
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
FROM ubuntu:18.04
LABEL maintainer="p36 (copy of geert-janklaps/docker-node-cfcli)"
LABEL version="1.0"
# Install required packages for next installs
RUN apt-get update && apt-get install -y wget gnupg2 curl chromium-browser build-essential maven default-jdk
# Set chrome environment variable for karma tests
ENV CHROME_BIN /usr/bin/chromium-browser
# Install Cloud Foundry CLI
RUN wget -q -O - https://packages.cloudfoundry.org/debian/cli.cloudfoundry.org.key | apt-key add -
RUN echo "deb https://packages.cloudfoundry.org/debian stable main" | tee /etc/apt/sources.list.d/cloudfoundry-cli.list
RUN apt-get update && apt-get install -y cf7-cli
# Setup alias for CF7 command
#RUN echo "alias cf='cf7'" >> ~/.bashrc
#RUN echo -e '#!/bin/bash\ncf7 "$@"' > /usr/bin/cf && chmod +x /usr/bin/cf
# Install community repository and MTA plugin
RUN cf7 add-plugin-repo CF-Community https://plugins.cloudfoundry.org
RUN cf7 install-plugin multiapps -f
# Install NodeJS
RUN curl -sL https://deb.nodesource.com/setup_12.x | bash -
RUN apt-get install -y nodejs
# Update npm to latest version
RUN npm install npm@latest -g
# Run cleanup
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
# Run command line
CMD /bin/bash