Skip to content

Commit

Permalink
fix: user added in dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
nitin-vavdiya committed Sep 5, 2024
1 parent 28796db commit 44b46ff
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions revocation-service/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,32 @@
FROM eclipse-temurin:latest
# /********************************************************************************
# * Copyright (c) 2021,2024 Contributors to the Eclipse Foundation
# *
# * See the NOTICE file(s) distributed with this work for additional
# * information regarding copyright ownership.
# *
# * This program and the accompanying materials are made available under the
# * terms of the Apache License, Version 2.0 which is available at
# * https://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.
# *
# * SPDX-License-Identifier: Apache-2.0
# ********************************************************************************/

FROM eclipse-temurin:17-jre-alpine

# run as non-root user
#RUN addgroup -g 11111 -S miw && adduser -u 11111 -S -s /bin/false -G miw miw
RUN addgroup -g 11111 -S miw && adduser -u 11111 -S -s /bin/false -G miw miw

# add curl for healthcheck
RUN apt-get update && apt-get install -y curl

USER miw

COPY ./LICENSE ./NOTICE.md ./revocation-service/DEPENDENCIES ./SECURITY.md ./revocation-service/build/libs/revocation-service-latest.jar /app/

WORKDIR /app
Expand Down

0 comments on commit 44b46ff

Please sign in to comment.