Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,14 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
with:
repository: ConservationMetrics/map-packer
- name: Install dependencies and run tests
run: |
npm ci
npm install -g pnpm
pnpm install
if [ -d "test" ]; then
npm run test
pnpm run test
else
echo "No test directory found, skipping tests."
fi
Expand Down
3 changes: 2 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ node_modules
.github
dist
.output
.nuxt
.nuxt
pnpm-lock.yaml
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,20 @@ FROM node:20.15.0-slim
RUN mkdir -p /app
WORKDIR /app

# Install pnpm
RUN npm install -g pnpm

# Copy package.json and package-lock.json into the container
COPY package*.json /app/

# Install dependencies
RUN npm install
RUN pnpm install

# Copy the application files into the container
COPY . /app

# Build the application
RUN npm run build
RUN pnpm run build

# Expose and set port 8080
EXPOSE 8080
Expand Down
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,26 +43,26 @@ For production environments like Azure, input the environmental variables via th

```bash
# install dependencies
$ npm install
$ pnpm install

# serve with hot reload at localhost:3000
$ npm run dev
$ pnpm run dev

# build for production and launch server
$ npm run build
$ npm run start
$ pnpm run build
$ pnpm run start

# use gc-shared-modules symlink
$ npm run link-module
$ pnpm run link-module

# locally preview production build:
$ npm run preview
$ pnpm run preview

# generate static project
$ npm run generate
$ pnpm run generate

# run tests
$ npm run test
$ pnpm run test
```

Add `--hostname 0.0.0.0` if you want the app to be accessible across your local network.
Expand Down
Loading