21 lines
428 B
Docker
21 lines
428 B
Docker
FROM node:21-alpine AS build
|
|
|
|
RUN mkdir /code
|
|
WORKDIR /code
|
|
|
|
COPY package*.json /code/
|
|
|
|
RUN npm install
|
|
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
|
|
|
|
# Add remainder of files
|
|
COPY . .
|
|
|
|
RUN ["npm", "run", "build"]
|
|
|
|
FROM nginx
|
|
|
|
COPY --from=build /code/public/ /usr/share/nginx/html/
|
|
|
|
COPY ./nginx.conf /etc/nginx/conf.d/default.conf
|