Skip to content

Commit 92ffb02

Browse files
authored
Various Cleanup: Remove unnecessary files from Docker image (#3961)
* Remove legacy View model * Dockerfile: Remove unnecessary files from image * Remove more view resources
1 parent 0b0c87a commit 92ffb02

4 files changed

Lines changed: 9 additions & 45 deletions

File tree

app/controllers/madmin/views_controller.rb

Lines changed: 0 additions & 4 deletions
This file was deleted.

app/madmin/resources/view_resource.rb

Lines changed: 0 additions & 33 deletions
This file was deleted.

app/models/view.rb

Lines changed: 0 additions & 8 deletions
This file was deleted.

containers/docker/Dockerfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,15 @@ COPY containers/docker/entrypoint.sh /usr/local/bin/docker-entrypoint
131131
COPY containers/docker/worker-entrypoint.sh /usr/local/bin/docker-worker-entrypoint
132132
RUN chmod +x /usr/local/bin/docker-entrypoint /usr/local/bin/docker-worker-entrypoint
133133

134+
# Clean up unnecessary files
135+
RUN rm -rf ${APP_ROOT}/.do \
136+
${APP_ROOT}/.github \
137+
${APP_ROOT}/app.json \
138+
${APP_ROOT}/bin/move_up_stable_tag.sh \
139+
${APP_ROOT}/containers \
140+
${APP_ROOT}/test \
141+
${APP_ROOT}/ct.yaml
142+
134143
RUN touch /opt/PasswordPusher/.env.production && chown pwpusher:pwpusher /opt/PasswordPusher/.env.production
135144

136145
USER pwpusher

0 commit comments

Comments
 (0)