Skip to content

Commit 84dba6a

Browse files
committed
feat: use smaller base image in FE
Thanks to a suggestion by @nooreldeensalah I'll be making use of a smaller base image. I hope the [Pr](udacity#56) gets merged for the next cohort
1 parent b0fe4f5 commit 84dba6a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

udagram-frontend/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
## Build
2-
FROM beevelop/ionic:latest AS ionic
2+
FROM node:14.15.5-alpine3.13 as build
33
# Create app directory
44
WORKDIR /usr/src/app
55
# Install app dependencies
66
# A wildcard is used to ensure both package.json AND package-lock.json are copied
77
COPY package*.json ./
88
RUN npm ci
9+
RUN npm install -g @ionic/cli
910
# Bundle app source
1011
COPY . .
1112
RUN ionic build
1213
## Run
1314
FROM nginx:alpine
1415
#COPY www /usr/share/nginx/html
15-
COPY --from=ionic /usr/src/app/www /usr/share/nginx/html
16+
COPY --from=build /usr/src/app/www /usr/share/nginx/html

0 commit comments

Comments
 (0)