Spaces:
Sleeping
Sleeping
zydou
commited on
Commit
·
52567a7
unverified
·
0
Parent(s):
feat: init
Browse files- Dockerfile +17 -0
- README.md +10 -0
Dockerfile
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM alpine:edge
|
| 2 |
+
RUN apk add --no-cache shadow ca-certificates && \
|
| 3 |
+
groupadd user && \
|
| 4 |
+
useradd -s /bin/sh --gid user -m user
|
| 5 |
+
USER user
|
| 6 |
+
ENV HOME=/home/user \
|
| 7 |
+
APP_URL=https://bennydou-stackoverflow.hf.space \
|
| 8 |
+
JWT_SIGNING_SECRET=secret
|
| 9 |
+
WORKDIR $HOME
|
| 10 |
+
|
| 11 |
+
COPY --from=ghcr.io/httpjamesm/anonymousoverflow:release /public /home/user/public
|
| 12 |
+
COPY --from=ghcr.io/httpjamesm/anonymousoverflow:release /templates /home/user/templates
|
| 13 |
+
COPY --from=ghcr.io/httpjamesm/anonymousoverflow:release /anonymousoverflow /home/user/anonymousoverflow
|
| 14 |
+
|
| 15 |
+
EXPOSE 8080
|
| 16 |
+
|
| 17 |
+
CMD ["/home/user/anonymousoverflow"]
|
README.md
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
title: StackOverflow
|
| 3 |
+
emoji: 🍀
|
| 4 |
+
sdk: docker
|
| 5 |
+
colorFrom: gray
|
| 6 |
+
colorTo: gray
|
| 7 |
+
pinned: false
|
| 8 |
+
license: mit
|
| 9 |
+
app_port: 8080
|
| 10 |
+
---
|