Skip to content
Snippets Groups Projects
Commit a8e66bf2 authored by Michelle Weidling's avatar Michelle Weidling :blowfish:
Browse files

build: add first draft for Docker

parent 2d5344ac
No related branches found
No related tags found
No related merge requests found
FROM node:lts-alpine as build-stage
# make the 'app' folder the current working directory
WORKDIR /app
# copy both 'package.json' and 'package-lock.json' (if available)
COPY package*.json ./
# install project dependencies
RUN npm install
# copy project files and folders to the current working directory (i.e. 'app' folder)
COPY . .
RUN npm run build
# production stage
FROM nginx:stable-alpine as production-stage
COPY --from=build-stage /app/dist /usr/share/nginx/html
EXPOSE 8093
CMD ["nginx", "-g", "daemon off;"]
\ No newline at end of file
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