Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
OCamlPro
ocaml-docker-images
Commits
b75f461c
Commit
b75f461c
authored
Apr 21, 2020
by
Louis Gesbert
Browse files
Add 'sudo' support so that opam-depext can do its work
parent
e58a1332
Pipeline
#9180
failed with stage
in 12 minutes and 20 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
Dockerfile
Dockerfile
+2
-1
No files found.
Dockerfile
View file @
b75f461c
...
...
@@ -25,11 +25,12 @@ RUN rm -rf /src
FROM
alpine:3.11 as target
LABEL
Description="Minimal OCaml + opam Alpine container" Vendor="OCamlPro"
RUN
apk add gcc make curl git
RUN
apk add gcc make curl git
sudo
COPY
--from=compilation /usr/local /usr/local
RUN
addgroup
-S
ocaml
&&
adduser
-S
ocaml
-G
ocaml
-s
/bin/sh
USER
ocaml
WORKDIR
/home/ocaml
RUN
echo
'ocaml ALL=(ALL) NOPASSWD: ALL'
>>
/etc/sudoers
RUN
[
"/usr/local/bin/opam"
,
"init"
,
"-a"
,
"--bare"
,
"--disable-sandboxing"
]
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