Add temporary .env for vite build
This commit is contained in:
@@ -48,8 +48,10 @@ RUN cd /app/code && \
|
|||||||
|
|
||||||
# Install Node dependencies and build assets
|
# Install Node dependencies and build assets
|
||||||
RUN cd /app/code && \
|
RUN cd /app/code && \
|
||||||
|
echo "APP_URL=http://localhost" > .env && \
|
||||||
npm install && \
|
npm install && \
|
||||||
npm run production && \
|
npm run production && \
|
||||||
|
rm -f .env && \
|
||||||
rm -rf node_modules && \
|
rm -rf node_modules && \
|
||||||
chown -R cloudron:cloudron /app/code/public
|
chown -R cloudron:cloudron /app/code/public
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user