Skip to content

Instantly share code, notes, and snippets.

View jeffersonbezerra's full-sized avatar

Jefferson Bezerra jeffersonbezerra

View GitHub Profile
@jeffersonbezerra
jeffersonbezerra / Dockerfile
Last active March 31, 2019 20:38
Dockerfile (Multistage)
FROM adoptopenjdk/openjdk12:alpine AS builder
MAINTAINER Jefferson Bezerra <[email protected]>
ENV DEMO_APP_FOLDER=/usr/src/app
RUN mkdir -p $DEMO_APP_FOLDER
WORKDIR $DEMO_APP_FOLDER
# add pom.xml only here, and download dependency
RUN apk --no-cache add maven
ADD pom.xml $DEMO_APP_FOLDER
@jeffersonbezerra
jeffersonbezerra / Dockerfile
Last active June 19, 2019 22:23
Dockerfile with mvn spotify plugin
#AZUL/ZULU(Alpine) is compiled in muslm, so it can run directly in alpine
FROM azul/zulu-openjdk-alpine:12.0.1 as generateJreMinimal
#This command creates a partial JRE with a selected set of modules.
RUN jlink \
--add-modules java.sql,java.naming,java.management,java.instrument,java.security.jgss,java.desktop,jdk.unsupported \
--verbose \
--strip-debug \
--compress 2 \
--no-header-files \
# bash_profile
#############################################
BLACK="\[\033[0;38m\]"
RED="\[\033[0;31m\]"
RED_BOLD="\[\033[01;31m\]"
BLUE="\[\033[01;34m\]"
GREEN="\[\033[0;32m\]"
export PS1="$BLACK[ \u@$RED\h $GREEN\w$RED_BOLD\$(__git_ps1)$BLACK ] "