Created
March 27, 2018 08:03
-
-
Save sr229/0460e62943412787dcb803afe959fcf7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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