Skip to content

Commit 0860207

Browse files
authored
Merge pull request #501 from metabrainz/fix-dockerfile-warnings
Fix Dockerfile warnings
2 parents d116bac + caa0425 commit 0860207

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
ARG PYTHON_BASE_IMAGE_VERSION=3.11-20231006
22
ARG NODE_VERSION=18-alpine
3-
FROM metabrainz/python:$PYTHON_BASE_IMAGE_VERSION as metabrainz-base
3+
FROM metabrainz/python:$PYTHON_BASE_IMAGE_VERSION AS metabrainz-base
44

55
ARG PYTHON_BASE_IMAGE_VERSION
66

@@ -42,13 +42,13 @@ RUN pip install --no-cache-dir -r requirements.txt
4242
############################################
4343
# NOTE: The development image starts here. #
4444
############################################
45-
FROM metabrainz-base as metabrainz-dev
45+
FROM metabrainz-base AS metabrainz-dev
4646
COPY . /code/metabrainz
4747

4848
#####################################################################################################
4949
# NOTE: The javascript files are continously watched and compiled using this image in developement. #
5050
#####################################################################################################
51-
FROM node:$NODE_VERSION as metabrainz-frontend-dev
51+
FROM node:$NODE_VERSION AS metabrainz-frontend-dev
5252

5353
ARG NODE_VERSION
5454

@@ -71,7 +71,7 @@ COPY webpack.config.js babel.config.js tsconfig.json .eslintrc.js .stylelintrc.j
7171
#########################################################################
7272
# NOTE: The javascript files for production are compiled in this image. #
7373
#########################################################################
74-
FROM metabrainz-frontend-dev as metabrainz-frontend-prod
74+
FROM metabrainz-frontend-dev AS metabrainz-frontend-prod
7575

7676
# Compile front-end (static) files
7777
COPY ./frontend /code/frontend
@@ -81,7 +81,7 @@ RUN npm run build:prod
8181
###########################################
8282
# NOTE: The production image starts here. #
8383
###########################################
84-
FROM metabrainz-base as metabrainz-prod
84+
FROM metabrainz-base AS metabrainz-prod
8585

8686
RUN pip install --no-cache-dir uWSGI==2.0.23
8787

0 commit comments

Comments
 (0)