Skip to content
Snippets Groups Projects
Commit f5071546 authored by Julian Matschinske's avatar Julian Matschinske
Browse files

Add Dockerfile and nginx config

parent caa15ee8
No related branches found
No related tags found
No related merge requests found
FROM nginx
RUN apt-get update
RUN apt-get install -y curl
RUN curl -sL https://deb.nodesource.com/setup_10.x | bash
RUN apt-get install -y nodejs
COPY package.json /app/
COPY package-lock.json /app/
WORKDIR /app/
RUN npm install
COPY . /app/
RUN npm run build -- --prod --base-href=/covid19/
RUN cp -r dist/covid19/* /usr/share/nginx/html/
COPY nginx/default.conf /etc/nginx/conf.d/
EXPOSE 80
server {
listen 80;
server_name localhost;
index index.html;
root /usr/share/nginx/html;
location / {
try_files $uri$args $uri$args/ /index.html;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment