Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added the map feature [bug] #28

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 7 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
12 changes: 6 additions & 6 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
node_modules

/.cache
/build
/public/build
.env
node_modules
/.cache
/build
/public/build
.env
8 changes: 4 additions & 4 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/** @type {import('eslint').Linter.Config} */
module.exports = {
extends: ["@remix-run/eslint-config", "@remix-run/eslint-config/node"],
};
/** @type {import('eslint').Linter.Config} */
module.exports = {
extends: ["@remix-run/eslint-config", "@remix-run/eslint-config/node"],
};
16 changes: 8 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
node_modules

/.cache
/build
/public/build
.env
.vscode
/.vscode
node_modules
/.cache
/build
/public/build
.env
.vscode
/.vscode
4 changes: 2 additions & 2 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
build
node_modules
build
node_modules
public
18 changes: 9 additions & 9 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"singleQuote": true,
"trailingComma": "all",
"tabWidth": 2,
"semi": true,
"arrowParens": "always",
"printWidth": 80,
"jsxBracketSameLine": false
}
{
"singleQuote": true,
"trailingComma": "all",
"tabWidth": 2,
"semi": true,
"arrowParens": "always",
"printWidth": 80,
"jsxBracketSameLine": false
}
88 changes: 44 additions & 44 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,44 +1,44 @@
# syntax=docker/dockerfile:1

# Adjust NODE_VERSION as desired
ARG NODE_VERSION=20.0.0
FROM node:${NODE_VERSION}-slim as base

# Install pnpm
RUN npm i -g [email protected]

# Enable corepack to use pnpm efficiently
RUN corepack enable

# Set the SHELL environment variable to bash and run pnpm setup
ENV SHELL=/bin/bash
RUN pnpm setup

# Copy the application files to the container
COPY . /app
WORKDIR /app

# Install build tools and python for native dependencies
RUN apt-get update -qq && \
apt-get install -y python3 pkg-config build-essential bash

# Install dependencies in a separate layer for the production build
FROM base AS prod-deps
ENV NODE_ENV=production
RUN pnpm install --prod --frozen-lockfile

FROM base AS build
# Install all dependencies and build the app
RUN pnpm install --frozen-lockfile
RUN pnpm run build

FROM base
# Set the production environment
ENV NODE_ENV=production
# Copy necessary files from previous stages
COPY --from=prod-deps /app/node_modules /app/node_modules
COPY --from=build /app/build /app/build
COPY --from=build /app/public /app/public

# Start the server by default, this can be overwritten at runtime
CMD [ "pnpm", "start" ]
# syntax=docker/dockerfile:1
# Adjust NODE_VERSION as desired
ARG NODE_VERSION=20.0.0
FROM node:${NODE_VERSION}-slim as base
# Install pnpm
RUN npm i -g [email protected]
# Enable corepack to use pnpm efficiently
RUN corepack enable
# Set the SHELL environment variable to bash and run pnpm setup
ENV SHELL=/bin/bash
RUN pnpm setup
# Copy the application files to the container
COPY . /app
WORKDIR /app
# Install build tools and python for native dependencies
RUN apt-get update -qq && \
apt-get install -y python3 pkg-config build-essential bash
# Install dependencies in a separate layer for the production build
FROM base AS prod-deps
ENV NODE_ENV=production
RUN pnpm install --prod --frozen-lockfile
FROM base AS build
# Install all dependencies and build the app
RUN pnpm install --frozen-lockfile
RUN pnpm run build
FROM base
# Set the production environment
ENV NODE_ENV=production
# Copy necessary files from previous stages
COPY --from=prod-deps /app/node_modules /app/node_modules
COPY --from=build /app/build /app/build
COPY --from=build /app/public /app/public
# Start the server by default, this can be overwritten at runtime
CMD [ "pnpm", "start" ]
Loading