You've already forked simple-icons
mirror of
https://github.com/simple-icons/simple-icons.git
synced 2025-11-23 21:34:49 +02:00
Use Docker image to build devcontainer (#13565)
This commit is contained in:
committed by
GitHub
parent
f79aa3ef28
commit
3d8417ed2e
@@ -1,16 +1,17 @@
|
||||
{
|
||||
"image": "mcr.microsoft.com/devcontainers/base:ubuntu",
|
||||
"features": {
|
||||
"ghcr.io/devcontainers/features/node:1": {
|
||||
"version": "22"
|
||||
}
|
||||
"build": {
|
||||
"dockerfile": "../Dockerfile",
|
||||
"context": "..",
|
||||
"target": "base"
|
||||
},
|
||||
"postCreateCommand": "npm ci --no-audit --no-fund",
|
||||
"customizations": {
|
||||
"vscode": {
|
||||
"extensions": [
|
||||
"EditorConfig.EditorConfig",
|
||||
"esbenp.prettier-vscode",
|
||||
"samverschueren.linter-xo"
|
||||
"samverschueren.linter-xo",
|
||||
"davidanson.vscode-markdownlint"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
12
Dockerfile
12
Dockerfile
@@ -1,12 +1,10 @@
|
||||
FROM node:22-alpine
|
||||
|
||||
FROM node:22-alpine AS base
|
||||
RUN apk add --no-cache git
|
||||
|
||||
WORKDIR /simple-icons
|
||||
COPY package.json /simple-icons/
|
||||
COPY package-lock.json /simple-icons/
|
||||
|
||||
FROM base AS final
|
||||
WORKDIR /simple-icons
|
||||
COPY . .
|
||||
RUN npm ci --no-audit --no-fund
|
||||
|
||||
COPY . .
|
||||
|
||||
ENTRYPOINT ["npx", "svgo", "/image.svg"]
|
||||
|
||||
Reference in New Issue
Block a user