Skip to content

Commit

Permalink
Quick launch: Skip gzipping
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcusAhlfors committed Apr 17, 2024
1 parent c3d5fc1 commit 32e8a14
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 1 addition & 3 deletions InitialProjectDockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,4 @@ RUN npm run build
# Create archive for quick launch (86M!, so not very smart)
RUN git clone https://github.com/diploi/nextjs-postgresql-template-demo.git /app-quick-launch \
&& cd /app-quick-launch \
&& npm install --prefix /app-quick-launch \
&& tar -czpf /usr/local/app-quick-launch.tar.gz /app-quick-launch \
&& rm -rf /app-quick-launch
&& npm install --prefix /app-quick-launch
4 changes: 3 additions & 1 deletion diploi-runonce.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ if [ ! "$(ls -A /app)" ]; then
if [ "$REPOSITORY_URL" = "https://github.com/diploi/nextjs-postgresql-template-demo.git" ]; then
# Using gzipped initial files (and node modules)
progress "Using quick launch /app";
tar -xzpf /usr/local/app-quick-launch.tar.gz -C /app --strip-components=1
mv /app-quick-launch/* /app
mv /app-quick-launch/.* /app
rmdir /app-quick-launch
else
progress "Pulling code";
git init --initial-branch=main
Expand Down

0 comments on commit 32e8a14

Please sign in to comment.