Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Mathieu Féry
M1Alma WebAndCloud Server
Commits
02f68b60
Unverified
Commit
02f68b60
authored
Dec 05, 2021
by
Féry Mathieu (Mathius)
Browse files
feat(docker): Add port exposed in dockerfiles
parent
90f77571
Pipeline
#34247
passed with stages
in 4 minutes and 18 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Dockerfile
View file @
02f68b60
...
...
@@ -4,4 +4,5 @@ ARG CREDENTIALS=service-account-file.json
COPY
${JAR_FILE} app.jar
COPY
${CREDENTIALS} service-account-file.json
ENV
GOOGLE_APPLICATION_CREDENTIALS=service-account-file.json
EXPOSE
8080
ENTRYPOINT
["java","-jar","/app.jar"]
\ No newline at end of file
Dockerfile-dev
View file @
02f68b60
...
...
@@ -2,4 +2,5 @@ FROM google/cloud-sdk
RUN apt-get install openjdk-11-jdk
ARG JAR_FILE=target/*-spring-boot.jar
COPY ${JAR_FILE} app.jar
EXPOSE 8080
ENTRYPOINT ["java","-jar","/app.jar"]
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment