Last active
May 10, 2017 16:09
-
-
Save marcelino-m/8b35ed44939aae9411034f522d83ad58 to your computer and use it in GitHub Desktop.
Dbschema in docker
This file contains hidden or 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
# Run as : | |
# docker run -it --rm -e DISPLAY=$DISPLAY --net=host -v /tmp/.X11-unix:/tmp/.X11-unix container-name | |
FROM debian:stretch | |
RUN apt-get -y update && apt-get install -y | |
ENV HOME /home/dbschema | |
ENV USER dbschema | |
RUN apt-get update && apt-get install -y \ | |
default-jre \ | |
--no-install-recommends \ | |
&& rm -rf /var/lib/apt/lists/* \ | |
&& useradd --create-home --home-dir $HOME $USER | |
ADD DbSchema $HOME/.src | |
RUN chown -R $USER:$USER $HOME | |
VOLUME $HOME | |
USER $USER | |
WORKDIR $HOME | |
ENTRYPOINT .src/DbSchema |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment