forked from freudenreichan/EinfuehrungInDocker_Pipeline2
moved appuser after ex creation
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
ffe679f825
commit
782353499e
@ -5,10 +5,6 @@ FROM alpine:latest
|
||||
#RUN apt-get update
|
||||
RUN apk add --no-cache build-base gcc curl vim net-tools
|
||||
|
||||
# User erstellen
|
||||
RUN adduser -D appuser
|
||||
USER appuser
|
||||
|
||||
# Arbeitsverzeichnis setzen
|
||||
WORKDIR /app
|
||||
|
||||
@ -18,6 +14,10 @@ COPY . .
|
||||
# Code kompilieren
|
||||
RUN gcc -o deployment deployment.c
|
||||
|
||||
# User erstellen
|
||||
RUN adduser -D appuser
|
||||
USER appuser
|
||||
|
||||
# Verzeichnis für Ausgabe anlegen
|
||||
RUN mkdir /output
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user