Skip to content

Commit 327009d

Browse files
authored
Merge pull request #945 from NASA-IMPACT/944-fix-casing-warning-on-dockerfiles
Change 'as' to 'AS' in Dockerfiles to remove the Case warning
2 parents f7f307e + 56ada7f commit 327009d

File tree

3 files changed

+9
-11
lines changed

3 files changed

+9
-11
lines changed

compose/local/django/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# define an alias for the specfic python version used in this file.
2-
FROM python:3.10.13-slim-bullseye as python
2+
FROM python:3.10.13-slim-bullseye AS python
33

44
# Python build stage
5-
FROM python as python-build-stage
5+
FROM python AS python-build-stage
66

77
ARG BUILD_ENVIRONMENT=local
88

@@ -25,7 +25,7 @@ RUN pip wheel --wheel-dir /usr/src/app/wheels \
2525

2626

2727
# Python 'run' stage
28-
FROM python as python-run-stage
28+
FROM python AS python-run-stage
2929

3030
ARG BUILD_ENVIRONMENT=local
3131
ARG APP_HOME=/app

compose/local/docs/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# define an alias for the specfic python version used in this file.
2-
FROM python:3.10.13-slim-bullseye as python
2+
FROM python:3.10.13-slim-bullseye AS python
33

44

55
# Python build stage
6-
FROM python as python-build-stage
6+
FROM python AS python-build-stage
77

88
ENV PYTHONDONTWRITEBYTECODE 1
99

@@ -26,7 +26,7 @@ RUN pip wheel --no-cache-dir --wheel-dir /usr/src/app/wheels \
2626

2727

2828
# Python 'run' stage
29-
FROM python as python-run-stage
29+
FROM python AS python-run-stage
3030

3131
ARG BUILD_ENVIRONMENT
3232
ENV PYTHONUNBUFFERED 1

compose/production/django/Dockerfile

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
2-
31
# define an alias for the specfic python version used in this file.
4-
FROM python:3.10.13-slim-bullseye as python
2+
FROM python:3.10.13-slim-bullseye AS python
53

64
# Python build stage
7-
FROM python as python-build-stage
5+
FROM python AS python-build-stage
86

97
ARG BUILD_ENVIRONMENT=production
108

@@ -27,7 +25,7 @@ RUN pip wheel --wheel-dir /usr/src/app/wheels \
2725

2826

2927
# Python 'run' stage
30-
FROM python as python-run-stage
28+
FROM python AS python-run-stage
3129

3230
ARG BUILD_ENVIRONMENT=production
3331
ARG APP_HOME=/app

0 commit comments

Comments
 (0)