-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
36 lines (26 loc) · 911 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
35
36
FROM archlinux:base
# Install OS dependencies
RUN pacman -Syu --noconfirm --needed \
clang xmake git make cmake ninja unzip zsh \
nodejs yarn python patchelf \
bear go
# Create a user called nodepp with UID 1000
RUN useradd -u 1000 -m -s /bin/zsh nodepp
# Set the user as the current user
USER nodepp
# Copy the project files
COPY --chown=nodepp:nodepp . /home/nodepp/nodepp
# Install go to get stomlGO111MODULE=on go install github.com/freshautomations/stoml@latest
RUN mkdir /home/nodepp/go
ENV GOPATH="/home/nodepp/go"
RUN GO112MODULE=on go install github.com/freshautomations/stoml@latest
WORKDIR /home/nodepp/nodepp
# Export $HOME/go/bin to $PATH
ENV PATH="${GOPATH}/bin:/usr/lib/bin:${PATH}"
ENV TERM="tmux-256color"
# Run the dependencies script
RUN ./scripts/deps.sh --install
# Install dependencies
RUN yarn install --ignore-scripts
# Build the project
RUN ./scripts/build.sh --build