Skip to content

Commit

Permalink
fix deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
POMXARK committed Oct 1, 2023
1 parent 90dbb51 commit ceefb20
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
9 changes: 9 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
FROM php:8.1-apache

ENV NODE_ENV development

ENV PGHOST localhost
ENV POSTGRES_DB pgsql
ENV POSTGRES_USER postgres
Expand Down Expand Up @@ -57,5 +59,12 @@ RUN apt-get autoclean
EXPOSE 80 5432

WORKDIR /var/www/html/public

# install project dependencies
RUN npm install

# build app for production with minification
RUN npm run build

#
CMD ["/usr/local/bin/start"]
3 changes: 0 additions & 3 deletions start.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
#!/bin/sh

npm i
node --max_old_space_size=300 /usr/local/bin/npm run build

service postgresql restart
sudo -u postgres psql -c "ALTER USER postgres WITH PASSWORD '12345678';"
sudo -u postgres psql -c "create database example_app;"
Expand Down

0 comments on commit ceefb20

Please sign in to comment.