Skip to content

Commit b9dee97

Browse files
committed
deploy
1 parent e4754ad commit b9dee97

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

Dockerfile

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
1-
FROM nginx:latest
2-
COPY dist/ /usr/share/nginx/html
3-
1+
FROM node:latest
42

53
ARG NODE=production
4+
5+
RUN git clone https://github.com/sethbergman/ng2-admin.git /var/www \
6+
&& cd /var/www \
7+
&& npm install --global rimraf \
8+
&& npm run clean \
9+
&& npm install --global webpack webpack-dev-server typescript@beta \
10+
&& npm install \
11+
&& npm run build:prod
12+
13+
EXPOSE 80
14+
15+
ENTRYPOINT /var/www
16+
# RUN npm run build

0 commit comments

Comments
 (0)