mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-25 09:55:15 +00:00
30 lines
538 B
Docker
30 lines
538 B
Docker
FROM ruby:2.6-slim
|
|
|
|
WORKDIR /srv/slate
|
|
|
|
VOLUME /srv/slate/build
|
|
VOLUME /srv/slate/source
|
|
|
|
EXPOSE 4567
|
|
|
|
COPY Gemfile .
|
|
COPY Gemfile.lock .
|
|
|
|
RUN apt-get update \
|
|
&& apt-get install -y --no-install-recommends \
|
|
build-essential \
|
|
git \
|
|
nodejs \
|
|
&& gem install bundler \
|
|
&& bundle install \
|
|
&& apt-get remove -y build-essential git \
|
|
&& apt-get autoremove -y \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
COPY . /srv/slate
|
|
|
|
RUN chmod +x /srv/slate/slate.sh
|
|
|
|
ENTRYPOINT ["/srv/slate/slate.sh"]
|
|
CMD ["build"]
|