Skip to content

Instantly share code, notes, and snippets.

@sr229
Created March 27, 2018 08:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sr229/0460e62943412787dcb803afe959fcf7 to your computer and use it in GitHub Desktop.
Save sr229/0460e62943412787dcb803afe959fcf7 to your computer and use it in GitHub Desktop.
FROM theiaide/theia:next
RUN addgroup theia && \
adduser -G theia -s /bin/sh -D theia;
RUN apk update && \
apk upgrade && \
apk add \
python \
python3 \
clang \
openjdk8-jre-base \
sudo;
# Create user
RUN echo "user ALL=(root) NOPASSWD:ALL" > /etc/sudoers.d/user && \
chmod 0440 /etc/sudoers.d/user;
## Explicit allow access
RUN mkdir -p /home/theia && \
mkdir -p /home/theia/project;
RUN chmod g+rw /home/* && \
chown -R theia:theia /home/theia/*;
VOLUME ["/home/theia/"]
EXPOSE 3000
USER theia
ENTRYPOINT [ "yarn", "theia", "start", "/home/theia/project", "--hostname=0.0.0.0" ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment