~hokiegeek/biologist-web

17fbb67ff1cddbd19bc8d7d0a3c1eb85ad548904 — HokieGeek 1 year, 9 months ago 88b25a3
Needed to update Dockerfile
1 files changed, 3 insertions(+), 16 deletions(-)

M Dockerfile
M Dockerfile => Dockerfile +3 -16
@@ 1,16 1,3 @@
FROM nginx:alpine

# install console and node
RUN apk add --no-cache openssl nodejs bash curl

# Copy in the app
WORKDIR /usr/share/nginx
COPY . .
RUN rm -rf html && ln -s dist html

RUN npm install && npm run ng build --base-href=. --prod

RUN rm -rf /tmp/npm_inst /root/.npm
RUN apk del nodejs

EXPOSE 80
FROM nginx
RUN sed -i '/location \/ {/{n;n;s/.*/try_files $uri $uri\/ \/index.html;/}' /etc/nginx/conf.d/default.conf
COPY dist/ /usr/share/nginx/html/