Skip to content

Instantly share code, notes, and snippets.

@fiveisprime
Created January 22, 2024 21:45
Show Gist options
  • Save fiveisprime/8541090bc26a18c077a6bc2c94c1d28b to your computer and use it in GitHub Desktop.
Save fiveisprime/8541090bc26a18c077a6bc2c94c1d28b to your computer and use it in GitHub Desktop.
Vite in Docker
FROM node:lts-alpine
WORKDIR /usr/src/app
COPY package*.json, .
RUN npm install --silent && mv node_modules ../
COPY . .
EXPOSE 5173
RUN chown -R node /usr/src/app
USER node
CMD ["npm", "run", "dev"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment