Skip to content

Commit

Permalink
released at eugenes.world
Browse files Browse the repository at this point in the history
  • Loading branch information
fshmidt committed Feb 24, 2023
1 parent 0117219 commit 3d1ea29
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 4,141 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ create-keypair:
# run postgres containers in docker-compose
# migrate down
# migrate up
# docker-compose dwon
# docker-compose down
init:
docker-compose up -d postgres-account && \
docker compose up -d postgres-account && \
$(MAKE) create-keypair ENV=dev && \
$(MAKE) create-keypair ENV=test && \
$(MAKE) migrate-down APPPATH=account N= && \
$(MAKE) migrate-up APPPATH=account N= && \
docker-compose down
docker compose down
26 changes: 13 additions & 13 deletions account-client/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
FROM node:lts-alpine
FROM node:14-alpine

# make the 'app' folder the current working directory
WORKDIR /app

# add `/app/node_modules/.bin` to $PATH - allow running 'vite'
#ENV PATH /app/node_modules/.bin:$PATH
# Install global dependencies
RUN npm install vite --global

# copy both 'package.json' and 'package-lock.json' (if available)
# Install app dependencies
COPY package*.json ./
RUN npm install --unsafe-perm=true --allow-root

# install project dependencies
# Copy app source code
COPY . .

# Build app
RUN npm run build

RUN npm install @vitejs/plugin-vue --unsafe-perm=true --allow-root
# Start app
CMD [ "npm", "run", "dev", "--unsafe-perm=true", "--allow-root"]

# copy project files and folders to the current working directory (i.e. 'app' folder)
COPY . .
RUN npm install --unsafe-perm=true --allow-root
RUN npm install [email protected] --unsafe-perm=true --allow-root
#RUN chown -R node ~/.npm
#RUN chown -R node /app/node_modules/
CMD [ "npm", "run", "dev", "--unsafe-perm=true", "--allow-root"]
Loading

0 comments on commit 3d1ea29

Please sign in to comment.