format build time
This commit is contained in:
parent
c31d4266cd
commit
f42519005c
1 changed files with 5 additions and 1 deletions
|
|
@ -54,8 +54,12 @@ RUN \
|
||||||
gem update --system && \
|
gem update --system && \
|
||||||
bundle config set app_config ${GEM_HOME}
|
bundle config set app_config ${GEM_HOME}
|
||||||
|
|
||||||
|
USER ${NAME}
|
||||||
|
|
||||||
FROM development AS builder
|
FROM development AS builder
|
||||||
|
|
||||||
|
USER root
|
||||||
|
|
||||||
COPY Gemfile Gemfile.lock package.json yarn.lock ./
|
COPY Gemfile Gemfile.lock package.json yarn.lock ./
|
||||||
|
|
||||||
RUN bundle install && yarn install
|
RUN bundle install && yarn install
|
||||||
|
|
@ -120,7 +124,7 @@ COPY --from=builder /app/.bundle /app/.bundle
|
||||||
COPY --from=assets /app/public/assets /app/public/assets
|
COPY --from=assets /app/public/assets /app/public/assets
|
||||||
|
|
||||||
RUN chown -R app:app /app/tmp /app/log /app/storage
|
RUN chown -R app:app /app/tmp /app/log /app/storage
|
||||||
RUN date -u +"%Y-%m-%d %H:%M:%s" >> .build_version
|
RUN date +"%Y-%m-%d %H:%M:%S %Z" >> .build_version
|
||||||
|
|
||||||
USER app
|
USER app
|
||||||
# Using variables in command list is not possible:
|
# Using variables in command list is not possible:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue