forked from getsentry/sentry-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.local
42 lines (35 loc) · 1.04 KB
/
Dockerfile.local
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
37
38
39
40
41
42
# Sentry documentation dev environment
#
# Instructions:
#
# Build the container:
# $ docker build -t sentry:jekyll-local-builder -f Dockerfile.local .
# Run the container:
# $ docker run -it -p 9000:4000 -p 35727:35727 -v $(pwd):/sentry/docs --rm sentry:jekyll-local-builder
#
# The container will dump the generated documentation in markdown and JSON
# formats into the /usr/src/output directory which you should mount as a volume
#
FROM ruby:2.5 as ruby
# FROM node:8.15-alpine as dev
RUN apt-get update \
&& apt-get install apt-transport-https
# node.js
RUN curl -sL https://deb.nodesource.com/setup_8.x | bash - \
&& apt-get install -y nodejs \
&& npm install -g yarn
# setup user
ARG UID=1000
ARG GID=1000
RUN groupadd -g $GID sentry \
&& useradd -g sentry -u $UID -d /home/sentry sentry \
&& mkdir -p /home/sentry \
&& chown sentry:sentry /home/sentry \
&& mkdir -p /sentry/docs \
&& chown sentry:sentry /sentry/docs
ENV LANG C.UTF-8
ENV LC_ALL C.UTF-8
WORKDIR /sentry/docs
USER sentry
EXPOSE 4000
CMD bash