Skip to content

Commit c6e6eac

Browse files
peterzhuamazonVijayanB
authored andcommitted
Remove the gem from docker image after installation (#45)
* Add new docker building scripts for logstash Signed-off-by: Peter Zhu <[email protected]> * Move build related vars to the top Signed-off-by: Peter Zhu <[email protected]> * Tweak and improve the docker script comments Signed-off-by: Peter Zhu <[email protected]> * Resolve gem building incorrectly due to move of spec files Signed-off-by: Peter Zhu <[email protected]> * Remove the gem from docker image after installation Signed-off-by: Peter Zhu <[email protected]>
1 parent 1175b34 commit c6e6eac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

release/docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ FROM docker.elastic.co/logstash/logstash-oss:${VERSION}
1616
USER logstash
1717
COPY --chown=logstash:logstash ./logstash-output-opensearch-*.gem /tmp/logstash-output-opensearch.gem
1818
COPY --chown=logstash:logstash ./logstash-opensearch-sample.conf /usr/share/logstash/config/
19-
RUN /usr/share/logstash/bin/logstash-plugin install /tmp/logstash-output-opensearch.gem
19+
RUN /usr/share/logstash/bin/logstash-plugin install /tmp/logstash-output-opensearch.gem && rm -f /tmp/logstash-output-opensearch.gem

0 commit comments

Comments
 (0)