Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
mail-docker
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
shore
mail-docker
Commits
8ebf0b13
Commit
8ebf0b13
authored
5 years ago
by
nimrod
Browse files
Options
Downloads
Patches
Plain Diff
Run clamd as the limited user clamav.
parent
cadae199
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
clamd/Dockerfile
+5
-4
5 additions, 4 deletions
clamd/Dockerfile
clamd/entrypoint
+0
-6
0 additions, 6 deletions
clamd/entrypoint
with
5 additions
and
10 deletions
clamd/Dockerfile
+
5
−
4
View file @
8ebf0b13
...
...
@@ -8,13 +8,14 @@ RUN apt-get update && \
procps
\
&&
\
freshclam
--verbose
--stdout
&&
\
install
-d
-m
755
-o
clamav
-g
clamav /run/clamav
&&
\
rm
-rf
/tmp/
*
/var/tmp/
*
/var/lib/apt/lists/
*
/var/cache/apt/archives/
*
COPY
--chown=root:root clamd.conf /etc/clamav/
RUN
clamconf
-n
COPY
--chown=root:root entrypoint /entrypoint
COPY
--chown=root:root clamd-ping clamd-update /usr/local/bin/
COPY
--chown=root:root clamd-ping /usr/local/bin/
COPY
--chown=root:root clamd-update /usr/local/bin/
USER
clamav
WORKDIR
/var/lib/clamav
EXPOSE
3310
VOLUME
/run/clamav
ENTRYPOINT
[ "/entrypoint" ]
CMD
[ "clamd" ]
HEALTHCHECK
CMD clamd-ping
This diff is collapsed.
Click to expand it.
clamd/entrypoint
deleted
100755 → 0
+
0
−
6
View file @
cadae199
#!/bin/sh
set
-eux
install
-d
-m
755
-o
clamav
-g
clamav /run/clamav
eval exec
"
$@
"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment