Skip to content

Commit 5a4c761

Browse files
committed
feat: add docker file for frontend
1 parent d700d20 commit 5a4c761

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

udagram-frontend/Dockerfile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
## Build
2+
FROM beevelop/ionic:latest AS ionic
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+
# Bundle app source
10+
COPY . .
11+
RUN ionic build
12+
## Run
13+
FROM nginx:alpine
14+
#COPY www /usr/share/nginx/html
15+
COPY --from=ionic /usr/src/app/www /usr/share/nginx/html

0 commit comments

Comments
 (0)