2023-04-21 07:05:02 +00:00
|
|
|
FROM node:20-alpine AS build
|
2021-04-24 17:01:18 +00:00
|
|
|
|
|
|
|
RUN mkdir /code
|
|
|
|
WORKDIR /code
|
|
|
|
|
|
|
|
COPY package*.json /code/
|
|
|
|
|
|
|
|
RUN npm install
|
2021-04-24 17:06:53 +00:00
|
|
|
ENV PATH=$PATH:/code/node_modules/elm-linter/bin:/code/node_modules/elm-format/bin:/code/node_modules/elm-test/bin:/code/node_modules/elm/bin
|
2021-04-24 17:01:18 +00:00
|
|
|
|
|
|
|
# Add remainder of files
|
|
|
|
COPY . .
|
|
|
|
|
2023-01-25 18:30:53 +00:00
|
|
|
RUN ["npm", "run", "build"]
|
2023-01-23 04:41:30 +00:00
|
|
|
|
2023-03-23 17:43:43 +00:00
|
|
|
FROM nginx
|
2023-01-23 04:41:30 +00:00
|
|
|
|
2023-03-23 17:43:43 +00:00
|
|
|
COPY --from=build /code/public/ /usr/share/nginx/html/
|
|
|
|
|
|
|
|
COPY ./nginx.conf /etc/nginx/conf.d/default.conf
|