feat: use alpine everywhere

This commit is contained in:
Tine Jozelj 2020-12-26 17:01:48 +01:00
parent 5a1fa48898
commit 12be26577f
No known key found for this signature in database
GPG key ID: 3818B74E3830D7CF
3 changed files with 6 additions and 8 deletions

View file

@ -44,16 +44,16 @@ COPY --from=ghcr.io/mentos1386/mosh:master /usr/bin/mosh /usr/bin/mosh
COPY --from=ghcr.io/mentos1386/mosh:master /usr/bin/mosh-server /usr/bin/mosh-server
COPY --from=ghcr.io/mentos1386/mosh:master /usr/bin/mosh-client /usr/bin/mosh-client
# Golang
COPY --from=golang:1.15.6 --chown=${SSH_USER} /usr/local/go /home/${SSH_USER}/.go
COPY --from=golang:1.15.6-alpine --chown=${SSH_USER} /usr/local/go /home/${SSH_USER}/.go
ENV PATH=/home/${SSH_USER}/.go/bin:$PATH
# Rust
COPY --from=rust:1.48.0 --chown=${SSH_USER} /usr/local/cargo /home/${SSH_USER}/.cargo
COPY --from=rust:1.48.0 --chown=${SSH_USER} /usr/local/rustup /home/${SSH_USER}/.rustup
COPY --from=rust:1.48.0-alpine --chown=${SSH_USER} /usr/local/cargo /home/${SSH_USER}/.cargo
COPY --from=rust:1.48.0-alpine --chown=${SSH_USER} /usr/local/rustup /home/${SSH_USER}/.rustup
ENV CARGO_HOME=/home/${SSH_USER}/.cargo
ENV RUSTUP_HOME=/home/${SSH_USER}/.rustup
ENV PATH=/home/${SSH_USER}/.cargo/bin:$PATH
# Node
COPY --from=node:15.5.0 /usr/local/bin/node /usr/local/bin/node
COPY --from=node:15.5.0-alpine /usr/local/bin/node /usr/local/bin/node
# TODO: Add yarbn/npm/npx/yarnpkg??
# Create .dotfiles

View file

@ -24,9 +24,7 @@ template:
@go run ./main.go template workspace-action > .github/workflows/workspace.yaml
pull:
@docker pull ghcr.io/mentos1386/workspace-ubuntu:edge
@docker pull ghcr.io/mentos1386/starship:0.47.0
@docker pull ghcr.io/mentos1386/kubectl:1.20.0
@docker pull ghcr.io/mentos1386/workspace:edge
run:
@docker run -it --rm --workdir /home/tine --user tine ghcr.io/mentos1386/workspace:edge zsh

View file

@ -1,4 +1,4 @@
FROM rust:1 as build
FROM rust:1-alpine as build
WORKDIR /usr/src/starship