Svelte in Docker

added by DotNetKicks
3/16/2021 3:39:21 PM

749 Views

This is a demo of how you can containerize an Svelte application. .dockerignore .git node_modules public/build Dockerfile FROM node:12-alpine WORKDIR /usr/src/app COPY package*.json ./ RUN npm install COPY . . EXPOSE 5000 ENV HOST=0.0.0.0 CMD ["npm", "start"] Dockerizing an Svelte app Login to Docker Hub $ docker login Create a Svelte container.


0 comments