mirror of
https://github.com/portainer/portainer.git
synced 2025-07-25 00:09:40 +02:00
* chore(build-system): update dev-toolkit * chore(build-system): update dev-toolkit * chore(build-system): update dev-toolkit Dockerfile * chore(build-system): update gruntfile * chore(build-system): gruntfile update * chore(build-system): better support for private git repositories * Update toolkit.Dockerfile * merge develop into toolkit-update * merge develop into toolkit-update
This commit is contained in:
parent
c39c7010be
commit
e8a6f15210
3 changed files with 130 additions and 13 deletions
57
build/linux/dev-toolkit/toolkit.Dockerfile
Normal file
57
build/linux/dev-toolkit/toolkit.Dockerfile
Normal file
|
@ -0,0 +1,57 @@
|
|||
FROM ubuntu:20.04
|
||||
|
||||
# Expose port for the Portainer UI and Edge server
|
||||
EXPOSE 9000
|
||||
EXPOSE 8000
|
||||
|
||||
WORKDIR /src/portainer
|
||||
|
||||
# Set TERM as noninteractive to suppress debconf errors
|
||||
RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
|
||||
|
||||
# Set default go version
|
||||
ARG GO_VERSION=go1.16.6.linux-amd64
|
||||
|
||||
# Install packages
|
||||
RUN apt-get update --fix-missing && apt-get install -qq \
|
||||
dialog \
|
||||
apt-utils \
|
||||
curl \
|
||||
build-essential \
|
||||
git \
|
||||
wget \
|
||||
apt-transport-https \
|
||||
ca-certificates \
|
||||
gnupg-agent \
|
||||
software-properties-common
|
||||
|
||||
# Install Docker CLI
|
||||
RUN curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add - \
|
||||
&& add-apt-repository \
|
||||
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
|
||||
$(lsb_release -cs) \
|
||||
stable" \
|
||||
&& apt-get update \
|
||||
&& apt-get install -y docker-ce-cli
|
||||
|
||||
|
||||
# Install NodeJS
|
||||
RUN curl -fsSL https://deb.nodesource.com/setup_14.x | bash - \
|
||||
&& apt-get install -y nodejs
|
||||
|
||||
# Install Yarn
|
||||
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
|
||||
&& echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list \
|
||||
&& apt-get update && apt-get -y install yarn
|
||||
|
||||
# Install Golang
|
||||
RUN cd /tmp \
|
||||
&& wget -q https://dl.google.com/go/${GO_VERSION}.tar.gz \
|
||||
&& tar -xf ${GO_VERSION}.tar.gz \
|
||||
&& mv go /usr/local
|
||||
|
||||
# Copy run script
|
||||
COPY run.sh /
|
||||
RUN chmod +x /run.sh
|
||||
|
||||
ENTRYPOINT ["/run.sh"]
|
Loading…
Add table
Add a link
Reference in a new issue