Skip to content

Commit a7d4f31

Browse files
andseljsvd
authored andcommitted
Fix synthax error in bach command string used in RUN directive inside Dockerfile (#42)
1 parent 2aa6b4c commit a7d4f31

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ RUN if [ $(command -v apt-get) ]; then \
1111
yum install -y sudo && \
1212
usermod -aG wheel logstash; \
1313
fi
14+
RUN if [ $(command -v apt-get) ]; then \
15+
apt-get update -y --fix-missing && \
16+
apt-get install -y shared-mime-info; \
17+
else \
18+
yum install -y shared-mime-info; \
19+
fi
1420
RUN echo "logstash ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/logstash && \
1521
chmod 0440 /etc/sudoers.d/logstash
1622
USER logstash

0 commit comments

Comments
 (0)