feat(byhlc112): add project deployment configuration
This commit is contained in:
20
deploy/docker/integral-resell/houtai.Dockerfile
Normal file
20
deploy/docker/integral-resell/houtai.Dockerfile
Normal file
@@ -0,0 +1,20 @@
|
||||
# =============================================================
|
||||
# 寄卖商城 Webman 后端运行时镜像
|
||||
# 应用目录通过 bind-mount 挂入 /app,镜像只提供基础运行环境
|
||||
# =============================================================
|
||||
|
||||
FROM alpine:3.19
|
||||
|
||||
ENV TZ=Asia/Shanghai
|
||||
|
||||
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories \
|
||||
&& apk add --no-cache bash curl tzdata ca-certificates \
|
||||
&& cp /usr/share/zoneinfo/$TZ /etc/localtime \
|
||||
&& echo $TZ > /etc/timezone \
|
||||
&& rm -f /etc/apk/cache/*.apk
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
EXPOSE 8785
|
||||
|
||||
CMD ["sh", "-c", "chmod +x /app/webman.bin && exec /app/webman.bin start"]
|
||||
Reference in New Issue
Block a user