Giter VIP home page Giter VIP logo

astro-aria's Introduction

👋 我是面条


  • 👨🏻‍💻 专注于前端开发的 Web 开发工程师
  • 💻 毕业于计算机专业的业余选手
  • 🪐 Self-hosting 爱好者
  • 🛡️ Homelab 理性玩家

你可以在这里关注我:

Mastodon Twitter Instagram GitHub Feedly Inoreader ghpvc


折腾的项目

  • Sink.Cool 基于 Cloudflare 带访问统计的短链系统
  • Email.ML 极简的一次性邮箱。100% 运行在 Cloudflare 网络中。
  • DNS.Surf DNS 分区解析结果查询工具。支持从全球 18 个数据中心查询域名的 DNS 解析结果,可以选择 100+ 不同的 DNS 解析器。
  • HTTP.IM HTTP 请求和响应调试工具,类似 httpbin.org。
  • HTML.ZONE 一些自用网页小工具(本机 IP、IP 信息查询、WHOIS 查询),单纯用来练手。

Profile

Stats Language

astro-aria's People

Contributors

ccbikai avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

astro-aria's Issues

add a Dockerfile

Hello,

Firstly, thank you for your hard work on maintaining this project. It has been incredibly helpful for our development needs.

I would like to request the addition of a Dockerfile to this project to streamline the setup and deployment processes. A Dockerfile would enable users to quickly build and run the project in a consistent environment, regardless of the host operating system.

Details:

  • Purpose: Simplify the setup and deployment process
  • Environment: Docker
  • Node.js Version: 20
  • Package Manager: pnpm
  • Suggested Features for Dockerfile:
  1. Multi-stage build: To keep the final image lightweight.
  2. Base image: Use Node.js 20 for the build stage and nginx

for the serve stage.

  1. Steps:

     - Install pnpm globally.
     - Copy package.json and pnpm-lock.yaml to the container.
     - Install dependencies.
     - Copy the application code.
     - Build the project.
     - Serve the static files using Nginx.
    

Example Dockerfile:

# Stage 1: Build
FROM node:20 AS build

# Set working directory
WORKDIR /app

# Install pnpm
RUN npm install -g pnpm

# Copy package.json and pnpm-lock.yaml to the container
COPY package.json pnpm-lock.yaml ./

# Install dependencies
RUN pnpm install

# Copy the rest of the application code to the container
COPY . .

# Build the Astro project
RUN pnpm run build

# Stage 2: Serve
FROM nginx:alpine AS serve

# Copy built static files from the build stage
COPY --from=build /app/dist /usr/share/nginx/html

# Expose port 80
EXPOSE 80

# Start Nginx
CMD ["nginx", "-g", "daemon off;"]

Would it be possible to add a Dockerfile similar to the example provided above or modify it as needed to fit the project's specific requirements?

Thank you for considering this request. Your efforts in enhancing the usability of this project are greatly appreciated.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.