Skip to content

Commit 2f0208e

Browse files
committed
clean up dockerfile
1 parent 1a1d66f commit 2f0208e

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

Dockerfile

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,5 @@
11
# syntax = docker/dockerfile:experimental
22

3-
# Dockerfile used to build a deployable image for a Rails application.
4-
# Adjust as required.
5-
#
6-
# Common adjustments you may need to make over time:
7-
# * Modify version numbers for Ruby, Bundler, and other products.
8-
# * Add library packages needed at build time for your gems, node modules.
9-
# * Add deployment packages needed by your application
10-
# * Add (often fake) secrets needed to compile your assets
11-
12-
#######################################################################
13-
14-
# Learn more about the chosen Ruby stack, Fullstaq Ruby, here:
15-
# https://github.com/evilmartians/fullstaq-ruby-docker.
16-
#
17-
# We recommend using the highest patch level for better security and
18-
# performance.
19-
203
ARG RUBY_VERSION=3.1.2
214
ARG VARIANT=jemalloc-bullseye-slim
225
FROM quay.io/evl.ms/fullstaq-ruby:${RUBY_VERSION}-${VARIANT} as base
@@ -83,7 +66,6 @@ RUN --mount=type=cache,id=prod-apt-cache,sharing=locked,target=/var/cache/apt \
8366
apt-get install --no-install-recommends -y ${DEPLOY_PACKAGES} && \
8467
rm -rf /var/lib/apt/lists /var/cache/apt/archives
8568

86-
# copy installed gems
8769
COPY --from=gems /app /app
8870
COPY --from=gems /usr/lib/fullstaq-ruby/versions /usr/lib/fullstaq-ruby/versions
8971
COPY --from=gems /usr/local/bundle /usr/local/bundle
@@ -98,13 +80,6 @@ RUN chmod +x /app/bin/* && \
9880
sed -i 's/ruby.exe\r*/ruby/' /app/bin/* && \
9981
sed -i '/^#!/aDir.chdir File.expand_path("..", __dir__)' /app/bin/*
10082

101-
# The following enable assets to precompile on the build server. Adjust
102-
# as necessary. If no combination works for you, see:
103-
# https://fly.io/docs/rails/getting-started/existing/#access-to-environment-variables-at-build-time
104-
ENV SECRET_KEY_BASE 1
105-
# ENV AWS_ACCESS_KEY_ID=1
106-
# ENV AWS_SECRET_ACCESS_KEY=1
107-
10883
# Run build task defined in lib/tasks/fly.rake
10984
ARG BUILD_COMMAND="bin/rails fly:build"
11085
RUN ${BUILD_COMMAND}

0 commit comments

Comments
 (0)