generated from Templates/Baseline
Adds basic container setup with pipeline #1
|
@ -3,11 +3,12 @@ depends_on:
|
|||
|
||||
pipeline:
|
||||
buildNextGitea:
|
||||
image: plugins/docker
|
||||
image: woodpeckerci/plugin-docker-buildx
|
||||
settings:
|
||||
#dry_run: true
|
||||
registry: gitea.ocram85.com
|
||||
repo: gitea.ocram85.com/codeserver/container
|
||||
platforms: linux/amd64
|
||||
dockerfile: Dockerfile
|
||||
tags: next
|
||||
username:
|
||||
|
|
19
Dockerfile
19
Dockerfile
|
@ -14,6 +14,21 @@ RUN \
|
|||
git config --system credential.helper store && \
|
||||
echo 'source /usr/share/bash-completion/completions/git' >> /etc/bash.bashrc
|
||||
|
||||
ADD finalize-codeserver.sh /usr/bin/
|
||||
RUN \
|
||||
chmod +x /usr/bin/finalize-codeserver.sh
|
||||
echo "**** install dev runtimes ****" && \
|
||||
curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash - && \
|
||||
apt-get install --no-install-recommends -y \
|
||||
nodejs \
|
||||
golang-go
|
||||
|
||||
RUN \
|
||||
echo "**** clean up ****" && \
|
||||
apt-get clean && \
|
||||
rm -rf \
|
||||
/tmp/* \
|
||||
/var/lib/apt/lists/* \
|
||||
/var/tmp/*
|
||||
|
||||
#ADD finalize-codeserver.sh /usr/bin/
|
||||
#RUN \
|
||||
# chmod +x /usr/bin/finalize-codeserver.sh
|
||||
|
|
|
@ -1,15 +1,13 @@
|
|||
#!/bin/bash
|
||||
|
||||
echo "**** install dev runtimes ****"
|
||||
curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash -
|
||||
apt-get install --no-install-recommends -y \
|
||||
sudo apt-get install --no-install-recommends -y \
|
||||
nodejs \
|
||||
golang-go
|
||||
|
||||
echo "**** clean up ****"
|
||||
apt-get clean
|
||||
rm -rf \
|
||||
/config/* \
|
||||
sudo apt-get clean
|
||||
sudo rm -rf \
|
||||
/tmp/* \
|
||||
/var/lib/apt/lists/* \
|
||||
/var/tmp/*
|
||||
|
|
Loading…
Reference in New Issue
Block a user