Skip to content

Commit

Permalink
Fix FromAsCasing warnings in Dockerfile
Browse files Browse the repository at this point in the history
Warning was:
  FromAsCasing: 'as' and 'FROM' keywords' casing do not match
  More info: https://docs.docker.com/go/dockerfile/rule/from-as-casing/
  • Loading branch information
cbliard committed Oct 16, 2024
1 parent 28446a4 commit 10f256d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docker/dev/backend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ruby:3.3.4-bullseye as develop
FROM ruby:3.3.4-bullseye AS develop
MAINTAINER [email protected]

ARG DEV_UID=1000
Expand Down Expand Up @@ -67,7 +67,7 @@ RUN gem install bundler --version "${BUNDLER_VERSION}" --no-document

####### Testing image below #########

FROM develop as test
FROM develop AS test

USER root

Expand Down
6 changes: 3 additions & 3 deletions docker/prod/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ARG RUBY_VERSION="3.3.4"
FROM ruby:${RUBY_VERSION}-bookworm as base
FROM ruby:${RUBY_VERSION}-bookworm AS base
LABEL maintainer="[email protected]"

ARG BUNDLER_VERSION="2.5.13"
Expand Down Expand Up @@ -80,7 +80,7 @@ RUN cp Gemfile.lock.bak Gemfile.lock && rm Gemfile.lock.bak && \
# -------------------------------------
# slim (public)
# -------------------------------------
FROM base as slim
FROM base AS slim

USER $APP_USER
EXPOSE 8080
Expand All @@ -91,7 +91,7 @@ VOLUME ["$APP_DATA_PATH"]
# -------------------------------------
# all-in-one (public)
# -------------------------------------
FROM base as all-in-one
FROM base AS all-in-one

ENV OPENPROJECT_RAILS__CACHE__STORE=memcache
ENV DATABASE_URL=postgres://openproject:[email protected]/openproject
Expand Down

0 comments on commit 10f256d

Please sign in to comment.