generated from AndreasAugustin/template
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
34 lines (24 loc) · 1019 Bytes
/
Dockerfile
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
#######################################
# image for dev build environment
######################################
FROM golang:1.22-alpine3.18 AS dev
# install packages
RUN apk add --update --no-cache bash make git zsh curl tmux
# Make zsh your default shell for tmux
RUN echo "set-option -g default-shell /bin/zsh" >> /root/.tmux.conf
# install oh-my-zsh
RUN sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
WORKDIR /app
#######################################
# image for creating the documentation
######################################
FROM node:23.0.0-alpine AS docs
# install packages
RUN apk add --update --no-cache bash make git zsh curl tmux
# Make zsh your default shell for tmux
RUN echo "set-option -g default-shell /bin/zsh" >> /root/.tmux.conf
# install oh-my-zsh
RUN sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
# install quality gate
RUN npm install -g markdownlint-cli
WORKDIR /app