Skip to content

Commit 5dfa6e8

Browse files
author
benchify
committed
this isn't going to do much, but adapt structure of vue template to use package.json for deps
1 parent d32f231 commit 5dfa6e8

File tree

4 files changed

+2665
-4
lines changed

4 files changed

+2665
-4
lines changed

templates/vue-template/e2b.Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@ FROM node:21-slim
55
WORKDIR /home/user/app
66

77
# Pre-install common dependencies to speed up runtime
8-
RUN npm init -y
98
RUN npm install -g typescript vue@3
10-
RUN npm install --legacy-peer-deps --save-dev tailwindcss@3 autoprefixer@10 postcss@8 @vue/compiler-sfc@3 vite @vitejs/plugin-vue @vitejs/plugin-react-swc
9+
10+
# Copy in package.json and install dependencies
11+
COPY package.json /home/user/app/
12+
RUN npm install --legacy-peer-deps
1113

1214
# Set up basic Vite configuration for Vue
1315
RUN npx tailwindcss init

0 commit comments

Comments
 (0)