Skip to content

Instantly share code, notes, and snippets.

@marcelino-m
Last active May 10, 2017 16:09
Show Gist options
  • Save marcelino-m/8b35ed44939aae9411034f522d83ad58 to your computer and use it in GitHub Desktop.
Save marcelino-m/8b35ed44939aae9411034f522d83ad58 to your computer and use it in GitHub Desktop.
Dbschema in docker
# 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