-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (20 loc) · 919 Bytes
/
Dockerfile
File metadata and controls
31 lines (20 loc) · 919 Bytes
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
FROM archlinux
MAINTAINER Alexander Popov <alex.wayfer@gmail.com>
ARG port
RUN pacman -Sy && pacman -S --noconfirm which git gcc make postgresql-libs
RUN useradd -m stream_timer
USER stream_timer
ENV HOME /home/stream_timer
## Install `rbenv` and `ruby-build`
ENV PATH $HOME/.rbenv/shims:$HOME/.rbenv/bin:$HOME/.rbenv/plugins/ruby-build/bin:$PATH
RUN curl -fsSL https://github.com/rbenv/rbenv-installer/raw/master/bin/rbenv-installer | bash
## Install `nodenv` and `node-build`
ENV PATH $HOME/.nodenv/shims:$HOME/.nodenv/bin:$HOME/.nodenv/plugins/node-build/bin:$PATH
RUN curl -fsSL https://raw.githubusercontent.com/nodenv/nodenv-installer/master/bin/nodenv-installer | bash
ARG project_path=/home/stream_timer/stream_timer
RUN mkdir $project_path
WORKDIR $project_path
COPY --chown=stream_timer:stream_timer . $project_path
RUN exe/setup.sh
EXPOSE ${port}
CMD ["bundle", "exec", "toys", "server", "start"]