We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0fe4f5 commit 84dba6aCopy full SHA for 84dba6a
udagram-frontend/Dockerfile
@@ -1,15 +1,16 @@
1
## Build
2
-FROM beevelop/ionic:latest AS ionic
+FROM node:14.15.5-alpine3.13 as build
3
# Create app directory
4
WORKDIR /usr/src/app
5
# Install app dependencies
6
# A wildcard is used to ensure both package.json AND package-lock.json are copied
7
COPY package*.json ./
8
RUN npm ci
9
+RUN npm install -g @ionic/cli
10
# Bundle app source
11
COPY . .
12
RUN ionic build
13
## Run
14
FROM nginx:alpine
15
#COPY www /usr/share/nginx/html
-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