Skip to content
Snippets Groups Projects

#43 set up docker image

Closed Pavel Barzou requested to merge #43-set-up-docker-image into main
4 files
+ 66
4
Compare changes
  • Side-by-side
  • Inline
Files
4
+ 26
0
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# https://docs.spring.io/spring-boot/docs/current/reference/html/deployment.html
FROM public.ecr.aws/amazoncorretto/amazoncorretto:17
ARG JAR_FILE=provider/pws-aws/target/*spring-boot.jar
WORKDIR /
COPY pws-aws-0.1.0-SNAPSHOT-spring-boot.jar app.jar
COPY entrypoint.sh /entrypoint.sh
EXPOSE 8080
ENTRYPOINT ["/bin/sh", "-c", ". /entrypoint.sh"]
Loading