diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..2172fd7 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,19 @@ +# Production Environment Dockerfile + +# base image +FROM node:alpine + +# create & set working directory +RUN mkdir -p /app +WORKDIR /app + +# copy source files +COPY . /app + +# install dependencies +RUN npm install + +# start app +RUN npm run build +EXPOSE 3000 +CMD npm run start \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..087511d --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3' + +services: + uiowa-atr: + build: . + ports: + - "1234:3000" + environment: + NODE_ENV: production